springboot热部署

方法1:
pom.xml直接添加依赖:
<dependency>
    <groupId>org.springframework.boot</groupld>
    <artifactid>spring-boot-devtools</artifactld>
    <optional>true</optional>
</dependency>

方法2::(修改后可以立即部署)
在build中添加dependencies,引入springloaded
<build>
    <plugins>
        <plugin>
            <groupld>org.springframework.boot</groupld>
            <artifactld>spring-boot-maven-pluqins/artifactld>
            <dependencies>
                <dependency>
                    <groupld>org.springframework</groupld>
                    <artifactId>springloaded</artifactld>
                    <version>1.2.6.RELEASE</version>
                </dependency>
            </dependencies>
        </plugin>
    </plugins>
</build>

方法3:(修改后可以立即部署)
下载springloaded的jar包:
在启动项中配置
-javaagent:E:\software\repository\org\springframework\springloaded\1.2.8.RELEASE\springloaded-1.2.8.RELEASE.jar -noverify
  • eclipse
  • idea









posted @ 2018-12-21 18:09  紫月java  阅读(212)  评论(0编辑  收藏  举报