java
文章平均质量分 53
中规中矩的�boy
这个作者很懒,什么都没留下…
展开
-
requestMappingHandlerAdapter 错误记录
报错记录这次错误来源 键盘误触,没错就是这么尴尬来源文件 application.yml– 错误配置 # mvc设置 mvc: format: # 日期映射格式 date: yyyy-MM-dd HH:mm:ssr–正确配置 # mvc设置 mvc: format: # 日期映射格式 date: yyyy-MM-dd HH:m原创 2021-12-02 12:18:04 · 1849 阅读 · 0 评论 -
解决springboot关于@Autowired注入为null的问题
有些类不是controller在使用autowired注入的service类显示为null第一种解决方式public class MesProductInstLogic { @Autowired private MesInstImpl mesInstImpl; private static MesProductInstLogic mpil ; ...原创 2019-10-21 15:40:00 · 11693 阅读 · 0 评论 -
spring boot + Mybatis + MySQL+ 通用mapper增删改查,多表查询
spring boot + Mybatis + MySQL+ 通用mapper增删改查,多表查询1. MySQL自带库test添加表user、role2. 添加依赖,配置属性3.新建实体类User,Role,UserRole(省略getter、setter)4. 通用mapper实现user表的增删改查5. 映射文件实现多表查询1. MySQL自带库test添加表user、role角色表ro...转载 2019-10-21 14:31:25 · 5195 阅读 · 2 评论