随笔分类 - springboot
摘要:一、前提条件 1、开启热加载 2、配置mybatis-plus 见 mybatis的博客 二、路由 1、导包 <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.60</
阅读全文
摘要:创建项目的时候,开启热部署 参考: https://www.cnblogs.com/scorpio-xinghen/p/11660203.html 1、maven 添加 <dependency> <groupId>org.springframework.boot</groupId> <artifac
阅读全文
摘要:参考文档 https://www.cnblogs.com/msi-chen/p/10974009.html#_label1_0 一、准备工作 1、导包 或 创建项目时勾选 <dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymel
阅读全文
摘要:看源码 WebMvcAutoConfiguration.java 优先级:访问:localhost:8080/ resources > static >public 关闭模板缓存 spring: thymeleaf: cache: false https://www.cnblogs.com/wt70
阅读全文
摘要:一、优先级 1、文件路径 file:./config/ file:./config/*/ file:./ classpath:/config/ classpath:/ 2、优先级 二、配置不同的开发环境 application.yml spring: profiles: active: online
阅读全文
摘要:官方文档 https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/spring-boot-features.html#boot-features-external-config-yaml 一、基础 1、注意事项 key
阅读全文

浙公网安备 33010602011771号