IDEA添加热部署及修改端口等问题
1.pom文件中添加依赖
<!--热部署的依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2.勾选Settings里的Complier中的Build project automatically
3.shift+Ctrl+alt+/ 选择registry
选compllier.automake.allow.when.app.running重新启动项目
注意:设置热部署后,每次修改后要保存,不然还是没变化
更改端口的问题:启动springboot项目后,在resources中application.properties中添加 server.port=xxxx
浙公网安备 33010602011771号