springBoot
星域_03zhan
一起努力学习呀~
展开
-
SpringBoot中异常处理
异常处理原创 2022-06-29 18:06:49 · 619 阅读 · 0 评论 -
SpringBoot登录设计---对密码进行两次Md5加密
MD5密码加密原创 2022-06-29 14:42:35 · 897 阅读 · 0 评论 -
SpringBoot国际化(中英文转换)
java国际化原创 2022-06-21 15:14:59 · 1548 阅读 · 0 评论 -
Could not determine which parameter to assign generated keys to
常见错误原创 2022-06-21 11:23:44 · 2559 阅读 · 0 评论 -
Invalid bound statement (not found): com.lianxi.service.MhPageService.selectAll
service层出现无效的绑定原创 2022-06-13 11:21:13 · 139 阅读 · 0 评论 -
遇到org.apache.ibatis.executor.ExecutorException: No constructor found in void matching [java.lang.Int
遇到下面这个问题:是在获取全部数据时遇到的问题:当时controller中方法是这样写的。@GetMapping("/get")public void getAll(){ userService.getAll(); }这要有一个返回值,不能用void可以改为:@GetMapping("/get")public List<User> getAll(){ return userService.getAll(); }...原创 2022-05-30 16:20:22 · 376 阅读 · 0 评论 -
SpringBoot中常用注解
文章目录控制反转:@Component@Bean@Configuration@ConfigurationProperties@Value@RestController@ResponseBody@Controller@RequestMapping控制反转:@Component把普通类实例化到Spring容器中。可以说很多注解都是基于这个注解。@Bean放在方法上,用Bean标注方法等价于xml中配置bean,这个方法一般返回一个实体对象,告诉Spring这里产生了一个对象。@Configurati原创 2022-05-21 11:19:42 · 295 阅读 · 0 评论 -
使用EasyExcel导入表格来进行批量插入数据----后端实现
1.创建一个实体类对应表格中的字段:@Data@EqualsAndHashCodepublic class RepositoryExcel { private Long safeTypeId; private Integer quesType; private String quesContent; private String options; private String answer;}2.创建数据监听器:注意:需要使用set方法把Sp原创 2022-04-17 17:02:16 · 2026 阅读 · 0 评论