在IDEA中为SpringBoot配置热部署

↘锁芯ラ 提交于 2019-11-30 06:25:46

版本:IDEA Community 2019.2.2,Spring Boot  2.1.8.RELEASE

流程:pom文件中添加依赖:

<dependency>   <groupId>org.springframework.boot</groupId>   <artifactId>spring-boot-devtools</artifactId>   <optional>true</optional></dependency>=》pom文件中spring-boot-maven-plugin添加configuration节点,改为:
<plugins>   <plugin>      <groupId>org.springframework.boot</groupId>      <artifactId>spring-boot-maven-plugin</artifactId>      <configuration>         <fork>true</fork>      </configuration>   </plugin></plugins>=》File=>Setting=>Compiler=>勾选Build project automatically=》保存=》ctrl+shift+alt+/=》Registry=>Comliler.automake....app.running 勾选=》在项目运行期间修改代码后,会自定重新编译运行

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!