码迷,mamicode.com
首页 > 其他好文 > 详细

String_boot热部署学习

时间:2018-06-17 11:01:01      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:tools   xml配置   pom.xml   com   技术   maven   查找   framework   make   

开启

设置Idea Ctrl+Alt+S 查找make project automatically --> 选中
技术分享图片

设置Idea Ctrl+Alt+S 输入: Registry compiler.automake.allow.when.app.running

技术分享图片

pom.xml配置:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
            <scope>true</scope>
        </dependency>

        <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork>  //该配置必须
                </configuration>
            </plugin>
        </plugins>

说明:
新建一个类与方法修改都能启动

String_boot热部署学习

标签:tools   xml配置   pom.xml   com   技术   maven   查找   framework   make   

原文地址:http://blog.51cto.com/357712148/2130113

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!