spring boot实现热部署(方法)

来源:互联网 发布:python的sleep 编辑:程序博客网 时间:2024/06/08 06:08

实现spring boot热部署二个步骤

一,加入依赖

<dependency>       <groupId>org.springframework.boot</groupId>       <artifactId>spring-boot-devtools</artifactId>       <!--optional=true,依赖不会传递,该项目依赖devtools;之后依赖myboot项目的项目如果想要使用devtools,需要重新引入-->        <optional>true</optional> </dependency> 
二,在
 <plugin>     <groupId>org.springframework.boot</groupId>     <artifactId>spring-boot-maven-plugin</artifactId> </plugin>
中加入:
<configuration>     <fork>true</fork></configuration>
            <plugin>                <groupId>org.springframework.boot</groupId>                <artifactId>spring-boot-maven-plugin</artifactId>                <configuration>                    <fork>true</fork>                </configuration>            </plugin>

原创粉丝点击