Java项目热部署
作者:
听城 | 来源:发表于
2020-06-14 17:46 被阅读0次
添加devtools到项目中
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
添加编译组件(pom)
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.2.2.RELEASE</version>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
开启自动编译

image.png
修改idea配置(按alt+ctrl+shift+/)

image.png
本文标题:Java项目热部署
本文链接:https://www.haomeiwen.com/subject/qeqfxktx.html
网友评论