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