美文网首页
spring boot Idea 热部署

spring boot Idea 热部署

作者: Yo咯咯哒 | 来源:发表于2017-10-24 17:04 被阅读0次

Step 1:

  • image.png

Step 2:

shift+alt+command+/ 点击Registry

image.png

勾上下面这个


image.png

Step 3:

pom.xml添加

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
    </dependency>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork>
                </configuration>
            </plugin>
        </plugins>
    </build>

Step 4:

重启IDEA, mac环境亲测有效!

相关文章

网友评论

      本文标题:spring boot Idea 热部署

      本文链接:https://www.haomeiwen.com/subject/blrxpxtx.html