随笔分类 - 3Spring Boot
摘要:目录 一、引入依赖 二、逆向生成工具类 三、其他配置 一、引入依赖 <!-- mysql --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</s
阅读全文
摘要:目录: 1、依赖 2、配置类 3、注解引用 4、可能遇到的问题 5、拓展 1、依赖 <!--swagger--> <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --> <dependency> <gro
阅读全文
摘要:1、ctrl+Shift+Alt+/,选择Registry 2、勾选 compiler.automake.allow.when.app.running(可能不按首字母排序,可以多找找) 3、Ctrl+Alt+s 按如下图选中 4、pom.xml增加依赖 <!-- 热部署模块 --><dependen
阅读全文
摘要:导入依赖: <!-- validated 字段合法性检测框架 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </
阅读全文
摘要:【本人使用此方法】解决springboot读取配置文件的中文乱码问题:https://blog.csdn.net/weixin_39220472/article/details/80193953 【原理】properties乱码,Transparent native-to-ascii convers
阅读全文