标签:shift code mave 热部署 图片 ctr resources class nal
1. 添加devtools依赖进入maven工程中
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency>
2. 添加maven插件进入你的pom.xml
<build> <finalName>buyforyou</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> <addResources>true</addResources> </configuration> </plugin> </plugins> </build>
3. 开启idea的自动编译选项
4. 快捷键 ctrl+shift+alt+/ 打开Registry,选中
5. 重新启动idea即可
标签:shift code mave 热部署 图片 ctr resources class nal
原文地址:https://www.cnblogs.com/ice-winters/p/12516057.html