###(一)系统说明
**制作试卷:**教师可以在线制作试卷,包括选择题,多选题,判断题,简答题。
**学生:**学生可以搜索到试卷,然后参加考试,提交答案。
**系统:**系统依据学生的作答,和老师给的答案自动判分,老师也可依据学生作答给出他的分数。
**特点:**本系统还设计了一种新的评分方式,依据学生堆答案的确信度来评分。
###(二)技术
本系统采用spring开发,整合了springMVC,spring的IOC,hibernate。前台采用jquery validation做注册校验。
几个配置文件
-
mvc-config.xml 配置spring MVC
<mvc:annotation-driven /> <context:component-scan base-package="com.hainan.cs.controller"/> <mvc:resources mapping="/resources/**" location="/resources/" />
-
application-config.xml 配置数据源等
<!-- 配置session factory --> <!-- Hibernate 4 SessionFactory Bean definition --> <bean id="hibernate4SessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource" /> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.hbm2ddl.auto">update</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.format_sql">true</prop> </props> </property> <property name="mappingLocations"> <list> <value>classpath:/com/hainan/cs/hbm/*.hbm.xml</value> </list> </property> </bean> <bean id="userdao" class="com.hainan.cs.dao.UserDaoImp"> <property name="sessionFactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="judgedao" class="com.hainan.cs.dao.JudgeDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="answerdao" class="com.hainan.cs.dao.AnswerDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="choicedao" class="com.hainan.cs.dao.ChoiceDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="mcqdao" class="com.hainan.cs.dao.MCQDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="paperdao" class="com.hainan.cs.dao.PaperDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="questiondao" class="com.hainan.cs.dao.QuestionDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="testdao" class="com.hainan.cs.dao.TestDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="newtestdao" class="com.hainan.cs.dao.NewTestDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean> <bean id="newanswerdao" class="com.hainan.cs.dao.NewAnswerDaoImp"> <property name="sessionfactory" ref="hibernate4SessionFactory"></property> </bean>
-
web.xml
<display-name>examsys</display-name> <!-- - Location of the XML file that defines the root application context. - Applied by ContextLoaderListener. --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:spring/application-config.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <!-- - Servlet that dispatches request to registered handlers (Controller implementations). --> <servlet> <servlet-name>dispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/mvc-config.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>dispatcherServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
###(三)截图
- 主页
- 登陆和注册
- 个人信息
- 创建试卷
- 参加考试
- 搜索考试