Common configuration of thymeleaf in spring boot

   
spring.thymeleaf.cache = true Enable template caching (recommended to turn off when developing)
spring.thymeleaf.check-template = true Check if template exists before rendering
spring.thymeleaf.check-template-location = true Check if template location exists
spring.thymeleaf.content-type = text/html Content-Type value
spring.thymeleaf.enabled = true Enable MVC Thymeleaf view resolution
spring.thymeleaf.encoding = UTF-8 template encoding
spring.thymeleaf.excluded-view-names = comma-separated list of view names that should be excluded from the solution
spring.thymeleaf.mode = HTML5 Template pattern applied to the template. See also StandardTemplateModeHandlers
spring.thymeleaf.prefix = classpath:/templates/ Look up prefixes for names when building URLs
spring.thymeleaf.suffix = .html Append the suffix to the view name when building the URL
spring.thymeleaf.template-resolver-order = The order of template parsers in the chain
spring.thymeleaf.view-names = comma-separated list of view names that can be resolved

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326121798&siteId=291194637