美文网首页
springboot-热部署

springboot-热部署

作者: 夏_未至 | 来源:发表于2020-06-02 09:18 被阅读0次

    pom配置

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

    IDEA配置

    setting > Compiler 选中 Build project automatically
    ctrl + shift + a Registry 选中 compiler.automake.allow.when.app.running

    相关文章

      网友评论

          本文标题:springboot-热部署

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