IntelliJ IDEA2022 springboot 热部署 html
#pom.xml

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <!--打开开关-->
                <configuration>
                    <fork>true</fork>
                    <addResources>true</addResources>
                </configuration>
            </plugin>

#application.properties

spring.devtools.restart.enabled=true
spring.devtools.restart.exclude=templates
spring.devtools.restart.additional-paths=src/main/java

#idea设置

IntelliJ IDEA2022.3 springboot 热部署含静态文件

IntelliJ IDEA2022.3 springboot 热部署含静态文件

IntelliJ IDEA2022.3 springboot 热部署含静态文件

编辑器切换时自动部署。

原文地址:https://blog.csdn.net/find_6/article/details/128372228

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2021-08-15
  • 2021-04-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-08-16
  • 2022-01-07
  • 2021-12-12
相关资源
相似解决方案