基于SSM学生在线考试系统
Posted qq_1262330535
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于SSM学生在线考试系统相关的知识,希望对你有一定的参考价值。
介绍:
spring+springmvc+mybatis+mysql+eclipse。
截图:
数据库表:
CREATE TABLE db_answers
(
username
varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
questionid
int(11) DEFAULT NULL,
stuanswer
varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
judge
int(11) DEFAULT NULL,
shijuanid
int(20) DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
CREATE TABLE db_subject
(
subjectid
int(11) NOT NULL AUTO_INCREMENT,
subjecttype
varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (subjectid
) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
– Records of db_subject
INSERT INTO db_subject
VALUES (1, ‘JAVA’);
INSERT INTO db_subject
VALUES (2, ‘大数据’);
INSERT INTO db_subject
VALUES (3, ‘UI’);
INSERT INTO db_subject
VALUES (4, ‘嵌入式’);
INSERT INTO db_subject
VALUES (5, ‘php’);
INSERT INTO db_subject
VALUES (6, ‘web前端’);
INSERT INTO db_subject
VALUES (7, ‘最代码代码学习’);
– Table structure for db_users
DROP TABLE IF EXISTS db_users
;
CREATE TABLE db_users
(
userid
int(11) NOT NULL AUTO_INCREMENT,
username
varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
userpwd
varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
subjectid
int(11) DEFAULT NULL,
usertype
int(11) DEFAULT NULL,
PRIMARY KEY (userid
) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
– Records of db_users
INSERT INTO db_users
VALUES (1, ‘李老师’, ‘Aa111111’, 1, 1);
INSERT INTO db_users
VALUES (2, ‘王老师’, ‘Aa111111’, 2, 1);
INSERT INTO db_users
VALUES (3, ‘teacher’, ‘Aa111111’, 3, 1);
INSERT INTO db_users
VALUES (4, ‘student1’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (5, ‘student2’, ‘123456’, 2, 2);
INSERT INTO db_users
VALUES (6, ‘student3’, ‘123456’, 2, 2);
INSERT INTO db_users
VALUES (7, ‘student4’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (8, ‘student5’, ‘123456’, 3, 2);
INSERT INTO db_users
VALUES (9, ‘admin’, ‘000000’, NULL, 0);
INSERT INTO db_users
VALUES (10, ‘123’, ‘123’, 1, 1);
INSERT INTO db_users
VALUES (11, ‘1’, ‘1’, 1, 2);
INSERT INTO db_users
VALUES (12, ‘2’, ‘2’, 2, 2);
INSERT INTO db_users
VALUES (13, ‘Dawn’, ‘000000’, 1, 1);
INSERT INTO db_users
VALUES (14, ‘student6’, ‘123456’, 3, 2);
INSERT INTO db_users
VALUES (15, ‘x1’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (16, ‘x2’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (17, ‘x3’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (18, ‘x4’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (19, ‘x5’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (20, ‘x6’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (21, ‘x7’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (22, ‘x8’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (23, ‘x9’, ‘123456’, 1, 2);
INSERT INTO db_users
VALUES (24, ‘x10’, ‘123456’, 1, 2);
以上是关于基于SSM学生在线考试系统的主要内容,如果未能解决你的问题,请参考以下文章
基于IDEA+SSM+Tomcat+Mysql开发得在线模拟考试系统
基于JAVA SSM springmvc+mybati学生在线考试系统(《精品毕设》源码+sql)主要实现:用户管理角色管理学科管理考生管理试题考试试卷管理成绩统计以及学生端考试和成绩