springboot
liu1251303815
这个作者很懒,什么都没留下…
展开
-
springboot使用mybatis-generator
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apac...原创 2020-04-29 20:02:56 · 103 阅读 · 0 评论 -
springboot热部署
1、禁止thymeleaf缓存spring.thymeleaf.cache=false2、添加自动部署maven依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId&g...原创 2020-04-07 17:52:21 · 99 阅读 · 0 评论 -
spring-boot-thymeleaf
1、依赖<!-- thymeleaf 模板启动器 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</ar...原创 2020-04-07 17:43:05 · 128 阅读 · 0 评论 -
springboot笔记(web篇)
1、webjars 以jar包/maven依赖引入静态文件//读取静态文件代码WebMvcAuotConfiguration.addResourceHandlers()原创 2020-04-02 17:28:32 · 132 阅读 · 0 评论 -
springboot笔记(基础篇)
1、配置文件 优先级 application.peoperties>application.yml2、常用注解 @ConfigurationProperties(prefix="XXX") 用于类上自动从配置文件中注入对象属性寻找依据 XXX(最新版springboot使用该注解需要导入依赖)//示例 类 @ConfigurationPropertie...原创 2020-03-31 10:53:57 · 160 阅读 · 0 评论 -
RestTemplate注入失败
异常:Description:Field restTemplate in com.lch.myairpan.login.LoginController required a bean of type 'org.springframework.web.client.RestTemplate' that could not be found.The injection point has...原创 2019-10-16 09:22:24 · 2638 阅读 · 0 评论