摘要:
springboot整合Mybatis为什么可以省略mybatis-config.xml 原来我们在使用mybatis的时候都是要配置mybatis-config.xml,但是用springboot整合Mybatis只要很简单的配置就可以了。 why 1:原来的mybatis-config.xm 阅读全文
摘要:
mybatis-spring原理解析 没有spring使用Mybatis的步骤是 1:创建SqlSessionFactoryBuilder 2: 通过SqlSessionFactoryBuilder创建要给SqlSessionFactory 3: 创建SqlSession 4: 获取Mapper 阅读全文
摘要:
Spring Boot配置FastJsonHttpMessageConverter报错'Content-Type' cannot contain wildcard type '*' 背景: 业务需求中属性名称和接口的名称不匹配,项目中用fastjosn的@JSONFiled注解自定义返回json 阅读全文