Springboot thymeleaf热部署


1.

spring.thymeleaf.cache=false

2.加入DEV-tools依赖

        <!--让项目支持热更新-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

3.快捷键Ctrl+Alt+s调出设置Compiler->Build project automatically

4.快捷键Ctrl+Shift+Alt+/调出弹出窗口点击Registry

 

 选中compiler.automake.allow.when.app.running


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM