Spring boot——修改html实时生效 IDEA

第一步:

在全局配置文件(application.properties)中禁用thymeleaf模板引擎的缓存,缓存是默认开启的

spring.thymeleaf.cache=false
第二步:

在idea中按 ctrl+f9 重新编译一下html文件。

 
建议:开发环境中可以禁用thymeleaf模板引擎的缓存,提高开发效率,但是生产环境中建议开启。

prolove 的头像
  • b853

  • 9388

  • bc41

  • 0128

  • e36e

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Insert the contact form shortcode with the additional CSS class- "bloghoot-newsletter-section"

By signing up, you agree to the our terms and our Privacy Policy agreement.