美文网首页
Intellij IDEA 使用Spring-boot-devT

Intellij IDEA 使用Spring-boot-devT

作者: _Sisyphus | 来源:发表于2018-03-26 17:05 被阅读0次

1. maven 配置

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

2. maven 配置

  • Command + 逗号 打开设置,勾选如图


    image
  • Command + Option + Shift + / ,选择 Registry


    image
  • 勾选如图


    image

OK,重启试试~

相关文章

网友评论

      本文标题:Intellij IDEA 使用Spring-boot-devT

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