首页 > 编程语言 > 详细

idea springboot热部署无效问题

时间:2017-08-07 18:21:15      阅读:239      评论:0      收藏:0      [点我收藏+]

 

Intellij IDEA 使用Spring-boot-devTools无效解决办法

springboot项目中遇到的bug

 

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

<build>
    <plugins>
        <!--spring boot 打包插件-->
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <mainClass>com.hjzgg.test.thirdjar.Application</mainClass>
                <fork>true</fork>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

 

idea springboot热部署无效问题

原文:http://www.cnblogs.com/hujunzheng/p/7300496.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!