您现在的位置是:首页 > 编程 > 

springboot+mybatis

2025-07-20 19:23:03
springboot+mybatis springboot+mybatis-plus演示做题功能后端实现简介本文讲解,如何使用springboot+mybatis-plus实现做题功能后端,文本最大的两点之处,演示如何通过后端代码实现多表查询,使得查询试卷的时候,会把对应的题目也查询过去,而且进行全部试卷的查询的时候,会更新试卷的分数。数据库设计数据库代码代码语言:javascript代码运行次数

springboot+mybatis

springboot+mybatis-plus演示做题功能后端实现

简介

本文讲解,如何使用springboot+mybatis-plus实现做题功能后端,文本最大的两点之处,演示如何通过后端代码实现多表查询,使得查询试卷的时候,会把对应的题目也查询过去,而且进行全部试卷的查询的时候,会更新试卷的分数。

数据库设计

数据库代码

代码语言:javascript代码运行次数:0运行复制
-- ----------------------------
-- Table structure for exam
-- ----------------------------
DROP TABLE IF EXISTS `exam`;
CREATE TABLE `exam`  (
  `id` int OT ULL AUTO_ICREMET COMMET '主键,考试编号',
  `exam_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci OT ULL COMMET '考试名称',
  `start_time` datetime OT ULL COMMET '考试开始时间',
  `end_time` datetime OT ULL COMMET '考试结束时间',
  `total_score` int OT ULL DEFAULT 0 COMMET '总分数',
  `questi_list` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci OT ULL COMMET '题目编号集合',
  `exam_type` enum('月考','期中','期末','测验') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci OT ULL DEFAULT '月考' COMMET '考试类型',
  PRIMARY KEY (`id`) USIG BTREE
) EGIE = InnoDB AUTO_ICREMET = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMET = '考试表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of exam
-- ----------------------------
ISERT ITO `exam` VALUES (1, '2021年6月份语文月考', '2021-06-15 08:00:00', '2021-06-15 10:00:00', 6, '1,2,,4,5', '月考');
ISERT ITO `exam` VALUES (2, '2021年7月份物理小检测', '2021-07-10 14:00:00', '2021-07-10 14:0:00', 24, '7,9,11,1,15', '测验');
ISERT ITO `exam` VALUES (, '2021年秋季学期期末考试', '2022-01-05 09:00:00', '2022-01-06 17:00:00', 8, '1,4,8,12,16', '期末');

-- ----------------------------
-- Table structure for question
-- ----------------------------
DROP TABLE IF EXISTS `question`;
CREATE TABLE `question`  (
  `id` int OT ULL AUTO_ICREMET,
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci OT ULL COMMET '题目内容',
  `question_type` enum('填空题','判断题','简答题','选择题') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci OT ULL DEFAULT '选择题' COMMET '题目类型',
  `option_a` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci ULL DEFAULT ULL COMMET 'A选项,仅适用于选择题',
  `option_b` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci ULL DEFAULT ULL COMMET 'B选项,仅适用于选择题',
  `option_c` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci ULL DEFAULT ULL COMMET 'C选项,仅适用于选择题',
  `option_d` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci ULL DEFAULT ULL COMMET 'D选项,仅适用于选择题',
  `answer` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci ULL COMMET '答案或解析',
  `score` int OT ULL DEFAULT 0 COMMET '分数',
  PRIMARY KEY (`id`) USIG BTREE
) EGIE = InnoDB AUTO_ICREMET = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMET = '题目表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of question
-- ----------------------------
ISERT ITO `question` VALUES (1, '世界上最高峰是哪座山?', '选择题', '珠穆朗玛峰', '乔戈里峰', '干城章嘉峰', '喜马拉雅山', 'A', 5);
ISERT ITO `question` VALUES (2, '地球上有多少个大洲?', '简答题', ULL, ULL, ULL, ULL, '7个大洲', 10);
ISERT ITO `question` VALUES (, '月亮的表面看起来像什么?', '简答题', ULL, ULL, ULL, ULL, '一块巨大的石头', 8);
ISERT ITO `question` VALUES (4, '甲骨文是我国古代哪个时期的文字?', '填空题', ULL, ULL, ULL, ULL, '商周时期', 7);
ISERT ITO `question` VALUES (5, '收入超过年度设定值的纳税义务人称为什么?', '选择题', '自然人', '法人', '社会团体', '企业', 'D', 6);
ISERT ITO `question` VALUES (6, '中国哪个省份是最大的投资来源地?', '填空题', ULL, ULL, ULL, ULL, '广东省', 7);
ISERT ITO `question` VALUES (7, '铁氧体产生电磁吸声效应的主要原因是:', '选择题', '铁氧体的导磁率较高', '铁氧体抗腐蚀性能好', '铁氧体功能稳定且防潮湿', '铁氧体具备收音的功能', 'A', 4);
ISERT ITO `question` VALUES (8, '以下哪个科学家是牛顿的老师?', '简答题', ULL, ULL, ULL, ULL, 'Isaac Barrow', 9);
ISERT ITO `question` VALUES (9, '西安市区南郊外有一座世界文化遗产,它是我国唐朝的皇陵,请问这是哪座皇陵?', '选择题', '秦始皇陵', '汉景帝陵', '唐太宗陵', '唐玄宗陵', 'D', 5);
ISERT ITO `question` VALUES (10, '西班牙语中1255这个数怎么读?', '填空题', ULL, ULL, ULL, ULL, 'mil doscientos cincuenta y cinco', 6);
ISERT ITO `question` VALUES (11, '在现代交通工具中,离合器适用于哪些车辆?', '选择题', '汽车和摩托车', '电动车和自行车', '飞机和直升机', '火车和地铁', 'A', 4);
ISERT ITO `question` VALUES (12, '在三大赛制的欧洲足球锦标赛中,每组小组赛有多少支球队?', '填空题', ULL, ULL, ULL, ULL, '4支球队', 8);
ISERT ITO `question` VALUES (1, '雅各布圆是什么?', '选择题', '圆上所有点到某一点的距离相等的图形', '三条互相垂直的直线', '顶部半圆的椎形物体', '大半径和短半径不相等的图形', 'A', 6);
ISERT ITO `question` VALUES (14, '人的肝在哪个器官的下方?', '填空题', ULL, ULL, ULL, ULL, '膈肌之上', 7);
ISERT ITO `question` VALUES (15, '动画电影《寻梦环游记》的主人公米格尔的最想成为音乐家,但他出生于一个世代不准许做音乐家的家庭。请问该片讲述的背景地区是哪里?', '选择题', '墨西哥', '美国', '巴西', '加拿大', 'A', 5);
ISERT ITO `question` VALUES (16, '「山东临沂市费县境内的著名景区,是集山水秀美、人文风景、历史文化、科学考察等为一体的国家级重点风景名胜区」。这个景区叫什么?', '简答题', ULL, ULL, ULL, ULL, '庙峪口', 9);
ISERT ITO `question` VALUES (17, '下列哪个事件被誉为珍珠港事件之前打响了太平洋战争的第一?', '选择题', '华盛顿塔克特会议', '柏林德意志运动大会', '萨拉热窝事件', '北京事变', 'C', 6);

后端代码

项目结构
application.properties
代码语言:javascript代码运行次数:0运行复制
# ?????
spring.datasource.url=jdbc:mysql://localhost:06/exam5?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
spring.datasource.username=root
spring.datasource.password=12456
spring.datasource.driver-class-name=jdbc.Driver

# ???????
server.port=8080

# MyBatis-Plus ??
=classpath:/mapper/*.xml
=
mybatis-plus.global-config.db-config.id-type=auto
=true
use-generated-keys=true
map-enum-as-ordinal=false
enum-handler=com.handlers.MybatisEnumTypeHandler
pom.xml
代码语言:javascript代码运行次数:0运行复制
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=".0.0" xmlns:xsi=";
	xsi:schemaLocation=".0.0 .0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.7.11</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId></groupId>
	<artifactId>examAndQuestion</artifactId>
	<version>0.0.1-SAPSHOT</version>
	<name>examAndQuestion</name>
	<description>examAndQuestion</description>
	<properties>
		<java.version>1.8</java.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
			<version>2.7.6</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.data</groupId>
			<artifactId>spring-data-jpa</artifactId>
			<version>2.5.6</version>
		</dependency>

		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-core</artifactId>
			<version>5.6..Final</version>
		</dependency>


		<dependency>
			<groupId>javax.persistence</groupId>
			<artifactId>javax.persistence-api</artifactId>
			<version>2.2</version>
		</dependency>

		<dependency>
			<groupId>spring.boot</groupId>
			<artifactId>mybatis-spring-boot-starter</artifactId>
			<version>2..0</version>
		</dependency>
		<dependency>
			<groupId>spring.boot</groupId>
			<artifactId>mybatis-spring-boot-starter</artifactId>
			<version>2..0</version>
		</dependency>
		<dependency>
			<groupId></groupId>
			<artifactId>mysql-connector-j</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.baomidou</groupId>
			<artifactId>mybatis-plus-boot-starter</artifactId>
			<version>.4.2</version>
		</dependency>

		<dependency>
			<groupId>org.apache.shiro</groupId>
			<artifactId>shiro-core</artifactId>
			<version>1.8.0</version>
		</dependency>

		<dependency>
			<groupId>io.jsonwebtoken</groupId>
			<artifactId>jjwt-api</artifactId>
			<version>0.11.2</version>
		</dependency>

		<!-- 如果要使用 jjwt 的实现,还需要添加以下依赖 -->
		<dependency>
			<groupId>io.jsonwebtoken</groupId>
			<artifactId>jjwt-impl</artifactId>
			<version>0.11.2</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>io.jsonwebtoken</groupId>
			<artifactId>jjwt-jackson</artifactId>
			<version>0.11.2</version>
			<scope>runtime</scope>
		</dependency>
		<!-- Hibernate Validator -->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-validation</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.shiro</groupId>
			<artifactId>shiro-core</artifactId>
			<version>1.8.0</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>
							<groupId>org.projectlombok</groupId>
							<artifactId>lombok</artifactId>
						</exclude>
					</excludes>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>
Result
代码语言:javascript代码运行次数:0运行复制
import lombok.AllArgsCtructor;
import lombok.Data;
import ;

@Data
@oArgsCtructor
@AllArgsCtructor
public class Result<T> {

    /**
     * 状态码,0表示成功,其他表示失败
     */
    private int code;

    /**
     * 提示信息
     */
    private String message;

    /**
     * 返回的数据
     */
    private T data;

    /**
     * 成功时的构造函数
     *
     * @param data 数据
     */
    public Result(T data) {
         = 200;
         = "success";
        this.data = data;
    }
    public Result(T data, Boolean success, String message) {
        if (success) {
             = 200;
             = "success";
        } else {
             = 405;
             = message;
        }
        this.data = data;
    }

    /**
     * 失败时的构造函数
     *
     * @param code    状态码
     * @param message 提示信息
     */
    public Result(int code, String message) {
         = code;
         = message;
        this.data = null;
    }

}
question表
Question
代码语言:javascript代码运行次数:0运行复制
import com.annotation.IdType;
import com.annotation.TableId;
import com.annotation.Tableame;
import lombok.Data;

@Data
@Tableame(value = "question")
public class Question {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String content;
    private String questionType;
    private String optionA;
    private String optionB;
    private String optionC;
    private String optionD;
    private String answer;

    private Integer score;
}
QuestionMapper
代码语言:javascript代码运行次数:0运行复制
import com.core.mapper.BaseMapper;
import examandquestion.Bean.Question;
import org.apache.ibatis.annotati.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
public interface QuestionMapper extends BaseMapper<Question> {
}
QuestionService
代码语言:javascript代码运行次数:0运行复制
import com.service.IService;
import examandquestion.Bean.Question;

public interface QuestionService extends IService<Question> {
}
QuestionServiceImpl
代码语言:javascript代码运行次数:0运行复制
import com.service.impl.ServiceImpl;
import examandquestion.Bean.Question;
import examandquestion.Mapper.QuestionMapper;
import examandquestion.Service.QuestionService;
import org.springframework.stereotype.Service;

@Service
public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> implements QuestionService {
}
QuestionController
代码语言:javascript代码运行次数:0运行复制
import com.core.conditi.query.QueryWrapper;
import examandquestion.Bean.Question;
import examandquestion.Bean.Result;
import examandquestion.Service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/questi")
public class QuestionController {

    @Autowired
    private QuestionService questionService;

    // 根据题目类型查询所有题目
    @GetMapping
    public Result<List<Question>> getAllQuesti(@RequestParam(required = false) String type) {
        QueryWrapper<Question> wrapper = new QueryWrapper<>();
        if (type != null) {
            ("question_type", type);
        }
        List<Question> questi = questionService.list(wrapper);
        return new Result<>(questi);
    }

    // 根据id查询题目
    @GetMapping("/{id}")
    public Result<Question> getQuestionById(@PathVariable Integer id) {
        Question question = questionService.getById(id);
        if (question != null) {
            return new Result<>(question);
        } else {
            return new Result<>(null, false, "Question not found.");
        }
    }

    // 添加新的题目
    @PostMapping
    public Result<Boolean> addQuestion(@RequestBody Question question) {
        boolean result = questionService.save(question);
        if (result) {
            return new Result<>(true);
        } else {
            return new Result<>(false, false, "Failed to add the question.");
        }
    }

    // 根据id更新题目内容
    @PutMapping("/{id}")
    public Result<Boolean> updateQuestion(@PathVariable Integer id, @RequestBody Question question) {
        question.setId(id);
        boolean result = questionService.updateById(question);
        if (result) {
            return new Result<>(true);
        } else {
            return new Result<>(false, false, "Failed to update the question.");
        }
    }

    // 根据id删除题目
    @DeleteMapping("/{id}")
    public Result<Boolean> deleteQuestion(@PathVariable Integer id) {
        boolean result = questionService.removeById(id);
        if (result) {
            return new Result<>(true);
        } else {
            return new Result<>(false, false, "Failed to delete the question.");
        }
    }

}
Exan表
Exam
代码语言:javascript代码运行次数:0运行复制
import com.annotation.IdType;
import com.annotation.TableId;
import com.annotation.Tableame;
import lombok.Data;

import javax.Min;
import javax.otBlank;
import javax.otull;
import java.util.Date;

@Data
@Tableame("exam")
public class Exam {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @otBlank(message = "考试名称不能为空")
    private String examame;
    @otull(message = "考试开始时间不能为空")
    private Date startTime;
    @otull(message = "考试结束时间不能为空")
    private Date endTime;
    @otull(message = "总分数不能为空")
    @Min(value = 0, message = "总分数不能小于0")
    private Integer totalScore;
    @otBlank(message = "题目编号集合不能为空")
    private String questiList;

    private String examType; // 考试类型
}
ExamIncludeQuestion
代码语言:javascript代码运行次数:0运行复制
import lombok.AllArgsCtructor;
import lombok.Data;
import ;

import java.util.ArrayList;

/*
* 我们获得试卷之后,试卷里面装着的是题目的序号,不是玩着的题目,这样前端还需要多处理,现在选择加一个封装类的方式
* 一键完成这个功能 里面包含对应的试卷和试卷对应的题目
* */
@Data
@AllArgsCtructor
@oArgsCtructor
public class ExamIncludeQuestion {
    private Exam exam;
    private ArrayList<Question> questionArrayList;
}
ExamMapper
代码语言:javascript代码运行次数:0运行复制
import com.core.mapper.BaseMapper;
import examandquestion.Bean.Exam;
import org.apache.ibatis.annotati.Mapper;

@Mapper
public interface ExamMapper extends BaseMapper<Exam> {
}
ExamService
代码语言:javascript代码运行次数:0运行复制
import com.service.IService;
import examandquestion.Bean.Exam;

import java.util.List;

public interface ExamService extends IService<Exam> {

}
ExamServiceImpl
代码语言:javascript代码运行次数:0运行复制
import com.service.impl.ServiceImpl;
import examandquestion.Bean.Exam;
import examandquestion.Mapper.ExamMapper;
import examandquestion.Service.ExamService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements ExamService {
}

Postman测试

这里就简单的测试一下,试卷的查询 Get请求 测试API:http://localhost:8080/exams 请求结果

代码语言:javascript代码运行次数:0运行复制
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "exam": {
                "id": 1,
                "examame": "2021年6月份语文月考",
                "startTime": "2021-06-15T00:00:00.000+00:00",
                "endTime": "2021-06-15T02:00:00.000+00:00",
                "totalScore": 6,
                "questiList": "1,2,,4,5",
                "examType": "月考"
            },
            "questionArrayList": [
                {
                    "id": 1,
                    "content": "世界上最高峰是哪座山?",
                    "questionType": "选择题",
                    "optionA": "珠穆朗玛峰",
                    "optionB": "乔戈里峰",
                    "optionC": "干城章嘉峰",
                    "optionD": "喜马拉雅山",
                    "answer": "A",
                    "score": 5
                },
                {
                    "id": 2,
                    "content": "地球上有多少个大洲?",
                    "questionType": "简答题",
                    "optionA": null,
                    "optionB": null,
                    "optionC": null,
                    "optionD": null,
                    "answer": "7个大洲",
                    "score": 10
                },
                {
                    "id": ,
                    "content": "月亮的表面看起来像什么?",
                    "questionType": "简答题",
                    "optionA": null,
                    "optionB": null,
                    "optionC": null,
                    "optionD": null,
                    "answer": "一块巨大的石头",
                    "score": 8
                },
                {
                    "id": 4,
                    "content": "甲骨文是我国古代哪个时期的文字?",
                    "questionType": "填空题",
                    "optionA": null,
                    "optionB": null,
                    "optionC": null,
                    "optionD": null,
                    "answer": "商周时期",
                    "score": 7
                },
                {
                    "id": 5,
                    "content": "收入超过年度设定值的纳税义务人称为什么?",
                    "questionType": "选择题",
                    "optionA": "自然人",
                    "optionB": "法人",
                    "optionC": "社会团体",
                    "optionD": "企业",
                    "answer": "D",
                    "score": 6
                }
            ]
        },
        {
            "exam": {
                "id": 2,
                "examame": "2021年7月份物理小检测",
                "startTime": "2021-07-10T06:00:00.000+00:00",
                "endTime": "2021-07-10T06:0:00.000+00:00",
                "totalScore": 24,
                "questiList": "7,9,11,1,15",
                "examType": "测验"
            },
            "questionArrayList": [
                {
                    "id": 7,
                    "content": "铁氧体产生电磁吸声效应的主要原因是:",
                    "questionType": "选择题",
                    "optionA": "铁氧体的导磁率较高",
                    "optionB": "铁氧体抗腐蚀性能好",
                    "optionC": "铁氧体功能稳定且防潮湿",
                    "optionD": "铁氧体具备收音的功能",
                    "answer": "A",
                    "score": 4
                },
                {
                    "id": 9,
                    "content": "西安市区南郊外有一座世界文化遗产,它是我国唐朝的皇陵,请问这是哪座皇陵?",
                    "questionType": "选择题",
                    "optionA": "秦始皇陵",
                    "optionB": "汉景帝陵",
                    "optionC": "唐太宗陵",
                    "optionD": "唐玄宗陵",
                    "answer": "D",
                    "score": 5
                },
                {
                    "id": 11,
                    "content": "在现代交通工具中,离合器适用于哪些车辆?",
                    "questionType": "选择题",
                    "optionA": "汽车和摩托车",
                    "optionB": "电动车和自行车",
                    "optionC": "飞机和直升机",
                    "optionD": "火车和地铁",
                    "answer": "A",
                    "score": 4
                },
                {
                    "id": 1,
                    "content": "雅各布圆是什么?",
                    "questionType": "选择题",
                    "optionA": "圆上所有点到某一点的距离相等的图形",
                    "optionB": "三条互相垂直的直线",
                    "optionC": "顶部半圆的椎形物体",
                    "optionD": "大半径和短半径不相等的图形",
                    "answer": "A",
                    "score": 6
                },
                {
                    "id": 15,
                    "content": "动画电影《寻梦环游记》的主人公米格尔的最想成为音乐家,但他出生于一个世代不准许做音乐家的家庭。请问该片讲述的背景地区是哪里?",
                    "questionType": "选择题",
                    "optionA": "墨西哥",
                    "optionB": "美国",
                    "optionC": "巴西",
                    "optionD": "加拿大",
                    "answer": "A",
                    "score": 5
                }
            ]
        },
        {
            "exam": {
                "id": ,
                "examame": "2021年秋季学期期末考试",
                "startTime": "2022-01-05T01:00:00.000+00:00",
                "endTime": "2022-01-06T09:00:00.000+00:00",
                "totalScore": 8,
                "questiList": "1,4,8,12,16",
                "examType": "期末"
            },
            "questionArrayList": [
                {
                    "id": 1,
                    "content": "世界上最高峰是哪座山?",
                    "questionType": "选择题",
                    "optionA": "珠穆朗玛峰",
                    "optionB": "乔戈里峰",
                    "optionC": "干城章嘉峰",
                    "optionD": "喜马拉雅山",
                    "answer": "A",
                    "score": 5
                },
                {
                    "id": 4,
                    "content": "甲骨文是我国古代哪个时期的文字?",
                    "questionType": "填空题",
                    "optionA": null,
                    "optionB": null,
                    "optionC": null,
                    "optionD": null,
                    "answer": "商周时期",
                    "score": 7
                },
                {
                    "id": 8,
                    "content": "以下哪个科学家是牛顿的老师?",
                    "questionType": "简答题",
                    "optionA": null,
                    "optionB": null,
                    "optionC": null,
                    "optionD": null,
                    "answer": "Isaac Barrow",
                    "score": 9
                },
                {
                    "id": 12,
                    "content": "在三大赛制的欧洲足球锦标赛中,每组小组赛有多少支球队?",
                    "questionType": "填空题",
                    "optionA": null,
                    "optionB": null,
                    "optionC": null,
                    "optionD": null,
                    "answer": "4支球队",
                    "score": 8
                },
                {
                    "id": 16,
                    "content": "「山东临沂市费县境内的著名景区,是集山水秀美、人文风景、历史文化、科学考察等为一体的国家级重点风景名胜区」。这个景区叫什么?",
                    "questionType": "简答题",
                    "optionA": null,
                    "optionB": null,
                    "optionC": null,
                    "optionD": null,
                    "answer": "庙峪口",
                    "score": 9
                }
            ]
        }
    ]
}
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。 原始发表:202-09-04,如有侵权请联系 cloudcommunity@tencent 删除后端mybatiscomimportnull

#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格

本文地址:http://www.dnpztj.cn/biancheng/1148064.html

相关标签:无
上传时间: 2025-07-19 17:34:34
留言与评论(共有 11 条评论)
本站网友 坦白说破解
14分钟前 发表
演示如何通过后端代码实现多表查询
本站网友 守望明天
26分钟前 发表
'A'
本站网友 沈阳万科金色家园
2分钟前 发表
这个景区叫什么?"
本站网友 李圣经
22分钟前 发表
ULL
本站网友 劳动路二手房
6分钟前 发表
'D'
本站网友 红星美凯龙上海
4分钟前 发表
'庙峪口'
本站网友 囯务院
29分钟前 发表
'中国哪个省份是最大的投资来源地?'
本站网友 丽景花园
30分钟前 发表
'2021年7月份物理小检测'
本站网友 上虞房屋出租
8分钟前 发表
"score"
本站网友 薇润
8分钟前 发表
"optionB"