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

IntelliJ IDEA2022 springboot 热部署 html
#pom.xml

        
            org.springframework.boot
            spring-boot-devtools
            runtime
            true
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                
                    true
                    true
                
            

#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 热部署含静态文件(最新推荐)_第1张图片

IntelliJ IDEA2022.3 springboot 热部署含静态文件(最新推荐)_第2张图片

IntelliJ IDEA2022.3 springboot 热部署含静态文件(最新推荐)_第3张图片

编辑器切换时自动部署。

到此这篇关于IntelliJ IDEA2022.3 springboot 热部署 含静态文件的文章就介绍到这了,更多相关idea springboot热部署内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

你可能感兴趣的:(IntelliJ IDEA2022.3 springboot 热部署含静态文件(最新推荐))