[
{
"tag": "4",
"category": "Spring 框架基础",
"type": "single",
"difficulty": "medium",
"question": "在Spring框架中,依赖注入的主要方式有哪些?",
"correct_answer": "构造器注入和Setter方法注入",
"incorrect_answers": ["属性注入", "注解注入", "XML配置注入"]
},
{
"tag": "4",
"category": "Spring MVC",
"type": "single",
"difficulty": "medium",
"question": "在Spring MVC中,@RequestMapping注解的作用是什么?",
"correct_answer": "映射Web请求到处理器函数或处理器类",
"incorrect_answers": ["用于配置Spring Bean", "用于配置数据源", "用于处理HTTP响应"]
},
{
"tag": "4",
"category": "Spring Boot",
"type": "single",
"difficulty": "medium",
"question": "Spring Boot如何自动配置应用程序?",
"correct_answer": "基于项目的依赖关系和使用条件进行自动配置",
"incorrect_answers": ["通过XML配置文件进行配置", "需要手动添加所有需要的配置", "只能配置固定的功能"]
},
{
"tag": "4",
"category": "Spring Data JPA",
"type": "single",
"difficulty": "medium",
"question": "Spring Data JPA中,JpaRepository接口的主要作用是什么?",
"correct_answer": "为实体类提供基本的CRUD操作",
"incorrect_answers": ["用于定义自定义查询", "用于连接数据库", "用于管理事务"]
},
{
"tag": "4",
"category": "Spring Security",
"type": "single",
"difficulty": "medium",
"question": "Spring Security中,如何实现用户的认证和授权?",
"correct_answer": "使用认证管理器和权限管理器",
"incorrect_answers": ["仅使用认证管理器", "仅使用权限管理器", "通过自定义过滤器实现"]
}
]
把上面的json数据上传上去的时候,总是报错
我记得导入的结构是
{}
{}
没有花括号,每条数据后面不用加逗号,不是json数组
导出的格式不是标准的json
1、先手动添加两条;
2、导出记录到json;
3、比较你自己的json文件,与导出的文件的不同,并按导出文件格式修改你上面的数据;
4、上传导入。