摘要: ref: https://blog.csdn.net/u013630349/article/details/47683293?utm_source=blogxgwz2 ref: https://blog.csdn.net/JohinieLi/article/details/76660733 ref: 阅读全文
posted @ 2020-05-07 16:52 Caesar_the_great 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1 添加相关依赖: implementation "mysql:mysql-connector-java:${mysqlConnectorJavaVersion}" compile "com.baomidou:mybatis-plus-boot-starter:${mybatisPlusStarte 阅读全文
posted @ 2020-05-07 14:58 Caesar_the_great 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 @Service (写在Service层接口的实现类上 XXXServiceImpl) Q: 为什么不直接写在接口上?因为一个接口可能有多个实现 1 @Service 2 public class LogServiceImpl extends ServiceImpl<LogMapper, Log 阅读全文
posted @ 2020-05-07 14:37 Caesar_the_great 阅读(537) 评论(0) 推荐(0) 编辑
摘要: mybatis-plus: ## mapper文件位置 mapper-locations: classpath*:/mapper/**/*.xml ## 别名包设置,在mapper.xml中可直接用类名 type-aliases-package: com.xx.xx.entity global-co 阅读全文
posted @ 2020-05-07 12:17 Caesar_the_great 阅读(4076) 评论(0) 推荐(0) 编辑