Spring-Boot初学之配置文件application.properties(thymeleaf模板)
2017-06-22 17:31
716 查看
Spring-Boot配置文件thymeleaf模板配置项(常用配置项为红色)
参数 | 介绍 |
---|---|
spring.thymeleaf.cache = true | 启用模板缓存(开发时建议关闭) |
spring.thymeleaf.check-template = true | 检查模板是否存在,然后再呈现 |
spring.thymeleaf.check-template-location = true | 检查模板位置是否存在 |
spring.thymeleaf.content-type = text/html | Content-Type值 |
spring.thymeleaf.enabled = true | 启用MVC Thymeleaf视图分辨率 |
spring.thymeleaf.encoding = UTF-8 | 模板编码 |
spring.thymeleaf.excluded-view-names = | 应该从解决方案中排除的视图名称的逗号分隔列表 |
spring.thymeleaf.mode = HTML5 | 应用于模板的模板模式。另请参见StandardTemplateModeHandlers |
spring.thymeleaf.prefix = classpath:/templates/ | 在构建URL时预先查看名称的前缀 |
spring.thymeleaf.suffix = .html | 构建URL时附加查看名称的后缀 |
spring.thymeleaf.template-resolver-order = | 链中模板解析器的顺序 |
spring.thymeleaf.view-names = | 可以解析的视图名称的逗号分隔列表 |
相关文章推荐
- Spring-Boot初学之配置文件application.properties(web性能)
- Spring-Boot初学之配置文件application.properties(web性能)
- Spring-Boot初学之配置文件application.properties(数据源配置)
- Spring boot配置文件 application.properties
- Spring-boot中读取核心配置文件application和自定义properties配置文件的方式
- Spring Boot属性文件application.properties配置文档(全部)
- springboot如何读取配置文件中的参数(例如:application-consts.properties) 又结合maven读取配置文件的顺序
- 解决eclipse创建spring boot项目加载不到application.properties配置文件的问题
- spring boot application.properties文件外部配置
- springboot中配置文件application.properties的理解
- Springboot属性文件application.properties配置大全,版本:1.5.4
- SpringBoot 配置文件 application.properties
- springboot 修改启动时默认加载application.properties文件以及加载指定配置文件
- spring boot的默认配置application.properties文件
- 【springboot】Spring boot配置文件 application.properties
- Spring boot application.properties文件的配置总结(全)
- Spring Boot为我们准备了最佳的数据库连接池方案,只需要在属性文件(例如application.properties)中配置需要的连接池参数即可。
- 【spring boot】配置文件 application.properties 属性解析
- Spring Boot默认配置文件application.properties配置格式
- SpringBoot内部配置:“application.properties配置”和”使用XML配置”,读取属性文件中的内容,日志配置,Profile配置(学习:SpringBoot实战)