zoukankan      html  css  js  c++  java
  • springboot热部署

    maven依赖

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

    注意添加这段

    <configuration>
        <fork>true</fork>
    </configuration>

    在设置中勾选Build project automatically,但是默认情况下只能在没有运行的条件下才生效,自然不能实现热部署,所以

    快捷键ctrl + shift + alt + /   

    进入Registry勾选compiler.automake.allow.when.app.running

    最后在application.properties添加

    spring.thymeleaf.cache=false

    spring.devtools.restart.enabled=true

    spring.devtools.restart.additional-paths=/src/main/java
  • 相关阅读:
    STL next_permutation 全排列
    日期问题
    兰顿蚂蚁
    矩阵翻硬币
    数学问题-排列组合
    h5css3_03练习
    h5css3_03
    h5css3_02练习
    h5css3_02
    h5c3_01练习
  • 原文地址:https://www.cnblogs.com/-rzx-/p/12458054.html
Copyright © 2011-2022 走看看