摘要:
1、引入依赖 <!-- 分页插件依赖 --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>4.1.0</version> </dependency 阅读全文
摘要:
https://www.cnblogs.com/zhangminghui/p/4903351.html 阅读全文
摘要:
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id") 阅读全文
摘要:
增加配置 mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl 阅读全文
摘要:
解决数据库和实体类的下划线或者驼峰不一致 然后数据缺少问题1、#mybatis.configuration.mapUnderscoreToCamelCase=true mybatis.configuration.map-underscore-to-camel-case=true 2、 @Result 阅读全文
摘要:
@Configuration @PropertySource(value="classpath:application.properties") public class WeChatConfig { @Value("${wxpay.appid}") private String appId; } 阅读全文
摘要:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> eclipse 阅读全文
摘要:
使用插件或者java类+generatorConfig文件 generatorConfig文件配置: <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD 阅读全文