
Spring boot-配置属性
给变量取个名字
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot配置属性之Server
server配置server.address指定server绑定的地址server.compression.enabled是否开启压缩,默认为false.server.compression.excluded-user-agents指定不压缩的user-agent,多个以逗号分隔,默认值为:text/html,text/xml,text/plain,text/css转载 2017-06-01 14:21:24 · 6074 阅读 · 0 评论 -
SpringBoot配置属性之Migration
序SpringBoot支持了两种数据库迁移工具,一个是flyway,一个是liquibase。其本身也支持sql script,在初始化数据源之后执行指定的脚本。flywayflyway.baseline-description对执行迁移时基准版本的描述.flyway.baseline-on-migrate当迁移时发现目标schema非空,而且带有没有元数据的表转载 2017-06-01 14:26:10 · 806 阅读 · 0 评论 -
SpringBoot配置属性之其他
aopspring.aop.auto是否支持@EnableAspectJAutoProxy,默认为: truespring.aop.proxy-target-classtrue为使用CGLIB代理,false为JDK代理,默认为falseapplicationspring.application.admin.enabled是否启用admin特性,默认为:转载 2017-06-01 14:26:54 · 3252 阅读 · 0 评论 -
SpringBoot配置属性之Security
序spring security是springboot支持的权限控制系统。security.basic.authorize-mode要使用权限控制模式.security.basic.enabled是否开启基本的鉴权,默认为truesecurity.basic.path需要鉴权的path,多个的话以逗号分隔,默认为[/**]security.basic.r转载 2017-06-01 14:24:49 · 815 阅读 · 0 评论 -
SpringBoot配置属性之MQ
activemqspring.activemq.broker-url指定ActiveMQ broker的URL,默认自动生成.spring.activemq.in-memory是否是内存模式,默认为true.spring.activemq.password指定broker的密码.spring.activemq.pooled是否创建PooledConnection转载 2017-06-01 14:24:12 · 1005 阅读 · 0 评论 -
SpringBoot配置属性之NOSQL
cachespring.cache.cache-names指定要创建的缓存的名称,逗号分隔(若该缓存实现支持的话)spring.cache.ehcache.config指定初始化EhCache时使用的配置文件的位置指定.spring.cache.guava.spec指定创建缓存要使用的spec,具体详见CacheBuilderSpec.spring.cache.转载 2017-06-01 14:23:36 · 701 阅读 · 0 评论 -
SpringBoot配置属性之DataSource
datasourcespring.dao.exceptiontranslation.enabled是否开启PersistenceExceptionTranslationPostProcessor,默认为truespring.datasource.abandon-when-percentage-full设定超时被废弃的连接占到多少比例时要被关闭或上报spring.data转载 2017-06-01 14:22:48 · 9565 阅读 · 0 评论 -
SpringBoot配置属性之MVC
序主要是mvc相关的一些配置mvcspring.mvc.async.request-timeout设定async请求的超时时间,以毫秒为单位,如果没有设置的话,以具体实现的超时时间为准,比如tomcat的servlet3的话是10秒.spring.mvc.date-format设定日期的格式,比如dd/MM/yyyy.spring.mvc.favicon转载 2017-06-01 14:17:31 · 716 阅读 · 0 评论