web - 在 Spring Boot 应用程序中发布 Web 内容

标签 web thymeleaf spring-boot

有没有办法在 Spring Boot 应用程序中发布 Web 内容而无需重新启动整个应用程序?

我使用 thymeleaf 尝试将“spring.template.cache”属性设置为 false,但没有成功

最佳答案

如果您使用mvn spring-boot:run运行应用程序,设置spring.template.cache就足够了。

我不确定其他 IDE,但如果从 Intellij IDEA 运行应用程序以刷新 Thymeleaf 模板,您需要 Make Project(Cmd+F9 on Mac) 每次您想看到更改时。

关于web - 在 Spring Boot 应用程序中发布 Web 内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21991903/

相关文章:

javascript - 用 javascript 举行事件

spring-boot - 无法发布具有许多(超过 256 个)值的表单

spring - 使用 Spring MVC 和 Thymeleaf 更新 View 而无需重新部署应用程序

html - CSS 内部样式不起作用,但内联样式起作用。为什么?

javascript - SPA,使用 oauth2 api 的网站——我需要 csrf 保护吗

html - CSS 嵌套规则,覆盖规则的意外行为

java - Spring 和 thymeleaf 布局方言不起作用

arrays - 如何在 MongoDB 聚合中合并来自多个文档的数组而不重复?

hibernate - 如何生成 RestController 类

java - camunda企业版如何配置Springboot?