软件编程
位置:首页>> 软件编程>> java编程>> IntelliJ IDEA2022.3 springboot 热部署含静态文件(最新推荐)

IntelliJ IDEA2022.3 springboot 热部署含静态文件(最新推荐)

作者:find_6  发布时间:2023-07-07 10:41:58 

标签:idea,springboot,热部署,静态文件

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

0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com