spring boot 的热部署问题
如何实现springboot中的热部署问题
一、pom中引入组件
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
二、在maven插件中开启fork
1 <plugins> 2 <plugin> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-maven-plugin</artifactId> 5 <configuration> 6 <fork>true</fork> 7 </configuration> 8 </plugin> 9 </plugins>
三、上述配置解决问题,但是在IDEA当中热部署出现不生效的问题的解决方法
1. ctrl+alt+s 打开setting ->compiler->勾选Build project automatically

2. ctrl+shift+a 搜索registry,打开第一个,弹出框后下拉找到 compiler.automake.allow.when.app.running 勾选上即可


浙公网安备 33010602011771号