-
spring.resources.add-mappings
是否开启默认的资源处理,默认为true
-
spring.resources.cache-period
设定资源的缓存时效,以秒为单位.
-
spring.resources.chain.cache
是否开启缓存,默认为: true
-
spring.resources.chain.enabled
是否开启资源 handling chain,默认为false
-
spring.resources.chain.html-application-cache
是否开启h5应用的cache manifest重写,默认为: false
-
spring.resources.chain.strategy.content.enabled
是否开启内容版本策略,默认为false
-
spring.resources.chain.strategy.content.paths
指定要应用的版本的路径,多个以逗号分隔,默认为:[/**]
-
spring.resources.chain.strategy.fixed.enabled
是否开启固定的版本策略,默认为false
-
spring.resources.chain.strategy.fixed.paths
指定要应用版本策略的路径,多个以逗号分隔
-
spring.resources.chain.strategy.fixed.version
指定版本策略使用的版本号
-
spring.resources.static-locations
指定静态资源路径,默认为classpath:[/META-INF/resources/,/resources/, /static/, /public/]以及context:/
-
spring.freemarker.allow-request-override
指定HttpServletRequest的属性是否可以覆盖controller的model的同名项
-
spring.freemarker.allow-session-override
指定HttpSession的属性是否可以覆盖controller的model的同名项
-
spring.freemarker.cache
是否开启template caching.
-
spring.freemarker.charset
设定Template的编码.
-
spring.freemarker.check-template-location
是否检查templates路径是否存在.
-
spring.freemarker.content-type
设定Content-Type.
-
spring.freemarker.enabled
是否允许mvc使用freemarker.
-
spring.freemarker.expose-request-attributes
设定所有request的属性在merge到模板的时候,是否要都添加到model中.
-
spring.freemarker.expose-session-attributes
设定所有HttpSession的属性在merge到模板的时候,是否要都添加到model中.
-
spring.freemarker.expose-spring-macro-helpers
设定是否以springMacroRequestContext的形式暴露RequestContext给Spring’s macro library使用
-
spring.freemarker.prefer-file-system-access
是否优先从文件系统加载template,以支持热加载,默认为true
-
spring.freemarker.prefix
设定freemarker模板的前缀.
-
spring.freemarker.request-context-attribute
指定RequestContext属性的名.
-
spring.freemarker.settings
设定FreeMarker keys.
-
spring.freemarker.suffix
设定模板的后缀.
-
spring.freemarker.template-loader-path
设定模板的加载路径,多个以逗号分隔,默认: ["classpath:/templates/"]
-
spring.freemarker.view-names
指定使用模板的视图列表.
-
spring.velocity.allow-request-override
指定HttpServletRequest的属性是否可以覆盖controller的model的同名项
-
spring.velocity.allow-session-override
指定HttpSession的属性是否可以覆盖controller的model的同名项
-
spring.velocity.cache
是否开启模板缓存
-
spring.velocity.charset
设定模板编码
-
spring.velocity.check-template-location
是否检查模板路径是否存在.
-
spring.velocity.content-type
设定ContentType的值
-
spring.velocity.date-tool-attribute
设定暴露给velocity上下文使用的DateTool的名
-
spring.velocity.enabled
设定是否允许mvc使用velocity
-
spring.velocity.expose-request-attributes
是否在merge模板的时候,将request属性都添加到model中
-
spring.velocity.expose-session-attributes
是否在merge模板的时候,将HttpSession属性都添加到model中
-
spring.velocity.expose-spring-macro-helpers
设定是否以springMacroRequestContext的名来暴露RequestContext给Spring’s macro类库使用
-
spring.velocity.number-tool-attribute
设定暴露给velocity上下文的NumberTool的名
-
spring.velocity.prefer-file-system-access
是否优先从文件系统加载模板以支持热加载,默认为true
-
spring.velocity.prefix
设定velocity模板的前缀.
-
spring.velocity.properties
设置velocity的额外属性.
-
spring.velocity.request-context-attribute
设定RequestContext attribute的名.
-
spring.velocity.resource-loader-path
设定模板路径,默认为: classpath:/templates/
-
spring.velocity.suffix
设定velocity模板的后缀.
-
spring.velocity.toolbox-config-location
设定Velocity Toolbox配置文件的路径,比如 /WEB-INF/toolbox.xml.
-
spring.velocity.view-names
设定需要解析的视图名称.
-
spring.thymeleaf.cache
是否开启模板缓存,默认true
-
spring.thymeleaf.check-template-location
是否检查模板路径是否存在,默认true
-
spring.thymeleaf.content-type
指定Content-Type,默认为: text/html
-
spring.thymeleaf.enabled
是否允许MVC使用Thymeleaf,默认为: true
-
spring.thymeleaf.encoding
指定模板的编码,默认为: UTF-8
-
spring.thymeleaf.excluded-view-names
指定不使用模板的视图名称,多个以逗号分隔.
-
spring.thymeleaf.mode
指定模板的模式,具体查看StandardTemplateModeHandlers,默认为: HTML5
-
spring.thymeleaf.prefix
指定模板的前缀,默认为:classpath:/templates/
-
spring.thymeleaf.suffix
指定模板的后缀,默认为:.html
-
spring.thymeleaf.template-resolver-order
指定模板的解析顺序,默认为第一个.
-
spring.thymeleaf.view-names
指定使用模板的视图名,多个以逗号分隔.
-
spring.groovy.template.allow-request-override
指定HttpServletRequest的属性是否可以覆盖controller的model的同名项
-
spring.groovy.template.allow-session-override
指定HttpSession的属性是否可以覆盖controller的model的同名项
-
spring.groovy.template.cache
是否开启模板缓存.
-
spring.groovy.template.charset
指定Template编码.
-
spring.groovy.template.check-template-location
是否检查模板的路径是否存在.
-
spring.groovy.template.configuration.auto-escape
是否在渲染模板时自动排查model的变量,默认为: false
-
spring.groovy.template.configuration.auto-indent
是否在渲染模板时自动缩进,默认为false
-
spring.groovy.template.configuration.auto-indent-string
如果自动缩进启用的话,是使用SPACES还是TAB,默认为: SPACES
-
spring.groovy.template.configuration.auto-new-line
渲染模板时是否要输出换行,默认为false
-
spring.groovy.template.configuration.base-template-class
指定template base class.
-
spring.groovy.template.configuration.cache-templates
是否要缓存模板,默认为true
-
spring.groovy.template.configuration.declaration-encoding
在写入declaration header时使用的编码
-
spring.groovy.template.configuration.expand-empty-elements
是使用<br/>这种形式,还是<br></br>这种展开模式,默认为: false)
-
spring.groovy.template.configuration.locale
指定template locale.
-
spring.groovy.template.configuration.new-line-string
当启用自动换行时,换行的输出,默认为系统的line.separator属性的值
-
spring.groovy.template.configuration.resource-loader-path
指定groovy的模板路径,默认为classpath:/templates/
-
spring.groovy.template.configuration.use-double-quotes
指定属性要使用双引号还是单引号,默认为false
-
spring.groovy.template.content-type
指定Content-Type.
-
spring.groovy.template.enabled
是否开启groovy模板的支持.
-
spring.groovy.template.expose-request-attributes
设定所有request的属性在merge到模板的时候,是否要都添加到model中.
-
spring.groovy.template.expose-session-attributes
设定所有request的属性在merge到模板的时候,是否要都添加到model中.
-
spring.groovy.template.expose-spring-macro-helpers
设定是否以springMacroRequestContext的形式暴露RequestContext给Spring’s macro library使用
-
spring.groovy.template.prefix
指定模板的前缀.
-
spring.groovy.template.request-context-attribute
指定RequestContext属性的名.
-
spring.groovy.template.resource-loader-path
指定模板的路径,默认为: classpath:/templates/
-
spring.groovy.template.suffix
指定模板的后缀
-
spring.groovy.template.view-names
指定要使用模板的视图名称.
-
spring.jackson.date-format
指定日期格式,比如yyyy-MM-dd HH:mm:ss,或者具体的格式化类的全限定名
-
spring.jackson.deserialization
是否开启Jackson的反序列化
-
spring.jackson.generator
是否开启json的generators.
-
spring.jackson.joda-date-time-format
指定Joda date/time的格式,比如yyyy-MM-dd HH:mm:ss). 如果没有配置的话,dateformat会作为backup
-
spring.jackson.locale
指定json使用的Locale.
-
spring.jackson.mapper
是否开启Jackson通用的特性.
-
spring.jackson.parser
是否开启jackson的parser特性.
-
spring.jackson.property-naming-strategy
指定PropertyNamingStrategy (CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES)或者指定PropertyNamingStrategy子类的全限定类名.
-
spring.jackson.serialization
是否开启jackson的序列化.
-
spring.jackson.serialization-inclusion
指定序列化时属性的inclusion方式,具体查看JsonInclude.Include枚举.
-
spring.jackson.time-zone
指定日期格式化时区,比如America/Los_Angeles或者GMT+10.