摘要: springboot整合Mybatis为什么可以省略mybatis-config.xml ​ 原来我们在使用mybatis的时候都是要配置mybatis-config.xml,但是用springboot整合Mybatis只要很简单的配置就可以了。 why 1:原来的mybatis-config.xm 阅读全文
posted @ 2020-11-01 20:40 一懒众衫小QAQ 阅读(4242) 评论(0) 推荐(0) 编辑
摘要: mybatis-spring原理解析 ​ 没有spring使用Mybatis的步骤是 1:创建SqlSessionFactoryBuilder 2: 通过SqlSessionFactoryBuilder创建要给SqlSessionFactory 3: 创建SqlSession 4: 获取Mapper 阅读全文
posted @ 2020-11-01 14:43 一懒众衫小QAQ 阅读(351) 评论(0) 推荐(0) 编辑
摘要: Spring Boot配置FastJsonHttpMessageConverter报错'Content-Type' cannot contain wildcard type '*' 背景: ​ 业务需求中属性名称和接口的名称不匹配,项目中用fastjosn的@JSONFiled注解自定义返回json 阅读全文
posted @ 2020-11-01 00:23 一懒众衫小QAQ 阅读(2813) 评论(0) 推荐(0) 编辑