application.properties 详解
mvc
spring.mvc.async.request-timeout
设定async请求的超时时间,以毫秒为单位,如果没有设置的话,以具体实现的超时时间为准,比如tomcat的servlet3的话是10秒.spring.mvc.date-format
设定日期的格式,比如dd/MM/yyyy.spring.mvc.favicon.enabled
是否支持favicon.ico,默认为: truespring.mvc.ignore-default-model-on-redirect
在重定向时是否忽略默认model的内容,默认为truespring.mvc.locale
指定使用的Locale.spring.mvc.message-codes-resolver-format
指定message codes的格式化策略(PREFIX_ERROR_CODE,POSTFIX_ERROR_CODE).spring.mvc.view.prefix
指定mvc视图的前缀.spring.mvc.view.suffix
指定mvc视图的后缀.
messages
spring.messages.basename
指定message的basename,多个以逗号分隔,如果不加包名的话,默认从classpath路径开始,默认: messagesspring.messages.cache-seconds
设定加载的资源文件缓存失效时间,-1的话为永不过期,默认为-1spring.messages.encoding
设定Message bundles的编码,默认: UTF-8
resource
spring.resources.add-mappings
是否开启默认的资源处理,默认为truespring.resources.cache-period
设定资源的缓存时效,以秒为单位.spring.resources.chain.cache
是否开启缓存,默认为: truespring.resources.chain.enabled
是否开启资源 handling chain,默认为falsespring.resources.chain.html-application-cache
是否开启h5应用的cache manifest重写,默认为: falsespring.resources.chain.strategy.content.enabled
是否开启内容版本策略,默认为falsespring.resources.chain.strategy.content.paths
指定要应用的版本的路径,多个以逗号分隔,默认为:[/**]spring.resources.chain.strategy.fixed.enabled
是否开启固定的版本策略,默认为falsespring.resources.chain.strategy.fixed.paths
指定要应用版本策略的路径,多个以逗号分隔spring.resources.chain.strategy.fixed.version
指定版本策略使用的版本号spring.resources.static-locations
指定静态资源路径,默认为classpath:[/META-INF/resources/,/resources/, /static/, /public/]以及context:/
freemarker
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,以支持热加载,默认为truespring.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
指定使用模板的视图列表.
velocity
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使用velocityspring.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
是否优先从文件系统加载模板以支持热加载,默认为truespring.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
设定需要解析的视图名称.
http
spring.hateoas.apply-to-primary-object-mapper
设定是否对object mapper也支持HATEOAS,默认为: truespring.http.converters.preferred-json-mapper
是否优先使用JSON mapper来转换.spring.http.encoding.charset
指定http请求和相应的Charset,默认: UTF-8spring.http.encoding.enabled
是否开启http的编码支持,默认为truespring.http.encoding.force
是否强制对http请求和响应进行编码,默认为true
json
- 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.
SPRING
spring.config.name= # config file name (default to 'application')
设置spring boot配置文件的名称 默认是application
spring.config.location= # location of config file
设置spring配置文件的位置
LOGGING
logging.path=/var/logs
设置日志的路径(可以相对/绝对)
logging.file=myapp.log
设置日志的文件
- 转: http://www.cnblogs.com/wangdaijun/p/5310192.html
application.properties 详解的更多相关文章
- SpringBoot配置文件 application.properties详解
SpringBoot配置文件 application.properties详解 本文转载:https://www.cnblogs.com/louby/p/8565027.html 阅读过程中若发现 ...
- [转]application.properties详解 --springBoot配置文件
本文转载:http://blog.csdn.net/lpfsuperman/article/details/78287265###; # spring boot application.propert ...
- application.properties详解 --springBoot配置文件【转载】
# spring boot application.properties配置的各个属性详解 # 该示例文件作为标准提供.(官方文档 翻译过来的) # 还是花了些功夫翻译,各位如果转发,请留下本文地址, ...
- application.properties详解 --springBoot配置文件
本文转载:http://blog.csdn.net/lpfsuperman/article/details/78287265###; # spring boot application.propert ...
- springboot集成freemarker 配置application.properties详解
#配置freemarker详解 #spring.freemarker.allow-request-override=false # Set whether HttpServletRequest att ...
- Spring Boot属性配置文件:application.properties 详解
学习资料 网址 官方说明文档 https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-pro ...
- spring boot application.properties详解
附上最新文档地址:https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-propertie ...
- SpringBoot配置文件application.properties详解
喜欢的朋友可以关注下,粉丝也缺. 相信很多的码友在接触springboot时,不知道怎么去配置一些项目中需要的配置,比如数据源,tomcat调优,端口等等,下面我就给大家奉献出一些项目中常用的配置信息 ...
- log4j.properties 详解与配置步骤(转)
找的文章,供参考使用 转自 log4j.properties 详解与配置步骤 一.log4j.properties 的使用详解 1.输出级别的种类 ERROR.WARN.INFO.DEBUGERROR ...
随机推荐
- Head First Python 读书笔记
记录一下这段时间看<Head First Python>记录的一些小知识,只是记了很少一部分,有需要的话以后再添加吧. for循环的使用: for 目标标识符 in 列表: 处理代码 if ...
- hihocoder 第四十周 三分求极值
题目链接:http://hihocoder.com/contest/hiho40/problem/1 ,一道简单的三分. 题目是在直角坐标系中有一条抛物线y=ax^2+bx+c和一个点P(x,y),求 ...
- hihocoder第三十六周 二分查找
题目链接:http://hihocoder.com/contest/hiho36/problem/1 , 一个比较简单的二分. 算法: 由于数据量比较大,O(nlogn)无法通过,所以不能先排序再查找 ...
- UVA Live Archive 4394 String painter(区间dp)
区间dp,两个str一起考虑很难转移. 看了别人题解以后才知道是做两次dp. dp1.str1最坏情况下和str2完全不相同,相当于从空白串开始刷. 对于一个区间,有两种刷法,一起刷,或者分开来刷. ...
- IOS 一些好的框架和 技术大牛的博客
http://blog.csdn.net/rodulf/article/details/51871093 比较好的框架链接: http://www.jianshu.com/p/9216c561b0f ...
- 【BZOJ4540】 [HNOI2016] 序列(莫队)
点此看题面 大致题意: 求出一个序列的一段区间中所有子序列最小值之和. 莫队 这道题其实是一道莫队题. 但是需要大量的预处理. 预处理 先考虑预处理两个数组\(lst_i\)和\(nxt_i\),分别 ...
- 2754: C++习题-快速排序
2754: C++习题-快速排序 Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 921 Solved: 406[Submit][Status][Web ...
- iView - Form中想要重置DatePicker生效,必须给DatePicker绑定value属性
Form中想要重置DatePicker生效,必须给DatePicker绑定value属性
- mysql 删除 一天前 创建 的数据,计算时间差
DELETE from table_name WHERE TIMESTAMPDIFF(SECOND ,CREATE_TIME,now() ) > 24*60*60 https://www.cnb ...
- shell脚本:变量,文件判断,逻辑运算等纪要
shell脚本中的变量定义,引用各有不同的方式,除此之外,很常用的有文件属性判断,逻辑运算,数值运算等,下面记录一下它们的属性作用 变量 shell变量的定义分为两种:一种是直接赋值定义,另一种是嵌套 ...