热部署

5次阅读

共计 492 个字符,预计需要花费 2 分钟才能阅读完成。

热部署 (别名热启动),其实很多地方都在使用也非常流行且好用 (如 springboot,jfinal,ssm),web.xml 中加入
<!– springboot 热部署 devtools 依赖包. –>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
<build>
<plugins>
<!– 这是 spring boot devtool plugin –>
<plugin>
<!– spring 热部署 –>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>

正文完
 0