SpringBoot application.properties各种配置解释

application.properties各种配置解释

  1. #SPRING CONFIG(ConfigFileApplicationListener)

  2. spring.config.name =#配置文件名(默认 为 'application' )

  3. spring.config.location =#配置文件的位置

  4.  
  5. # 多环境配置文件激活属性

  6. spring.profiles.active=dev #加载application-dev.properties配置文件内容

  7. application-dev.properties: #开发环境

  8. application-test.properties: #测试环境

  9. application-prod.properties: #生产环境

  10.  
  11.  
  12. #activemq

  13. spring.activemq.broker-url #指定ActiveMQ broker的URL,默认自动生成.

  14. spring.activemq.in-memory #是否是内存模式,默认为true.

  15. spring.activemq.password #指定broker的密码.

  16. spring.activemq.pooled #是否创建PooledConnectionFactory,而非ConnectionFactory,默认false

  17. spring.activemq.user #指定broker的用户.

  18.  
  19.  
  20. #aop

  21. spring.aop.auto #是否支持@EnableAspectJAutoProxy,默认为: true

  22. spring.aop.proxy-target-class #true为使用CGLIB代理,false为JDK代理,默认为false

  23.  
  24.  
  25. #application

  26. spring.application.admin.enabled #是否启用admin特性,默认为: false

  27. spring.application.admin.jmx-name #指定admin MBean的名称,默认为: org.springframework.boot:type=Admin,name=SpringApplication

  28.  
  29.  
  30. #artemis(HornetQ捐献给apache后的版本)

  31. spring.artemis.embedded.cluster-password #指定集群的密码,默认是启动时随机生成.

  32. spring.artemis.embedded.data-directory #指定Journal文件的目录.如果不开始持久化则不必要指定.

  33. spring.artemis.embedded.enabled #是否开启内嵌模式,默认true

  34. spring.artemis.embedded.persistent #是否开启persistent store,默认false.

  35. spring.artemis.embedded.queues #指定启动时创建的队列,多个用逗号分隔,默认: []

  36. spring.artemis.embedded.server-id #指定Server ID. 默认是一个自增的数字,从0开始.

  37. spring.artemis.embedded.topics #指定启动时创建的topic,多个的话逗号分隔,默认: []

  38. spring.artemis.host #指定Artemis broker 的host. 默认: localhost

  39. spring.artemis.mode #指定Artemis 的部署模式, 默认为auto-detected(也可以为native or embedded).

  40. spring.artemis.port #指定Artemis broker 的端口,默认为: 61616

  41.  
  42.  
  43. #autoconfig

  44. spring.autoconfigure.exclude #配置要排除的Auto-configuration classes.

  45.  
  46.  
  47. #batch

  48. spring.batch.initializer.enabled #是否在必要时创建batch表,默认为true

  49. spring.batch.job.enabled #是否在启动时开启batch job,默认为true

  50. spring.batch.job.names #指定启动时要执行的job的名称,逗号分隔,默认所有job都会被执行

  51. spring.batch.schema #指定要初始化的sql语句路径,默认:classpath:org/springframework/batch/core/schema-@@platform@@.sql)

  52. spring.batch.table-prefix #指定批量处理的表的前缀.

  53.  
  54.  
  55. #cookie、session配置

  56. server.session.cookie.comment #指定session cookie的comment

  57. server.session.cookie.domain #指定session cookie的domain

  58. server.session.cookie.http-only #是否开启HttpOnly.

  59. server.session.cookie.max-age #设定session cookie的最大age.

  60. server.session.cookie.name #设定Session cookie 的名称.

  61. server.session.cookie.path #设定session cookie的路径.

  62. server.session.cookie.secure #设定session cookie的“Secure” flag.

  63. server.session.persistent #重启时是否持久化session,默认false

  64. server.session.timeout #session的超时时间

  65. server.session.tracking-modes #设定Session的追踪模式(cookie, url, ssl).

  66.  
  67.  
  68. #datasource

  69. spring.dao.exceptiontranslation.enabled #是否开启PersistenceExceptionTranslationPostProcessor,默认为true

  70. spring.datasource.abandon-when-percentage-full #设定超时被废弃的连接占到多少比例时要被关闭或上报

  71. spring.datasource.allow-pool-suspension #使用Hikari pool时,是否允许连接池暂停,默认为: false

  72. spring.datasource.alternate-username-allowed #是否允许替代的用户名.

  73. spring.datasource.auto-commit #指定updates是否自动提交.

  74. spring.datasource.catalog #指定默认的catalog.

  75. spring.datasource.commit-on-return #设置当连接被归还时,是否要提交所有还未完成的事务

  76. spring.datasource.connection-init-sql #指定连接被创建,再被添加到连接池之前执行的sql.

  77. spring.datasource.connection-init-sqls #使用DBCP connection pool时,指定初始化时要执行的sql

  78. spring.datasource.connection-properties.[key] #在使用DBCP connection pool时指定要配置的属性

  79. spring.datasource.connection-test-query #指定校验连接合法性执行的sql语句

  80. spring.datasource.connection-timeout #指定连接的超时时间,毫秒单位.

  81. spring.datasource.continue-on-error #在初始化数据库时,遇到错误是否继续,默认false

  82. spring.datasource.data #指定Data (DML)脚本

  83. spring.datasource.data-source-class-name #指定数据源的全限定名.

  84. spring.datasource.data-source-jndi #指定jndi的地址

  85. spring.datasource.data-source-properties.[key] #使用Hikari connection pool时,指定要设置的属性

  86. spring.datasource.db-properties #使用Tomcat connection pool,指定要设置的属性

  87. spring.datasource.default-auto-commit #是否自动提交.

  88. spring.datasource.default-catalog #指定连接默认的catalog.

  89. spring.datasource.default-read-only #是否设置默认连接只读.

  90. spring.datasource.default-transaction-isolation #指定连接的事务的默认隔离级别.

  91. spring.datasource.driver-class-name #指定driver的类名,默认从jdbc url中自动探测.

  92. spring.datasource.fair-queue #是否采用FIFO返回连接.

  93. spring.datasource.health-check-properties.[key] #使用Hikari connection pool时,在心跳检查时传递的属性

  94. spring.datasource.idle-timeout #指定连接多久没被使用时,被设置为空闲,默认为10ms

  95. spring.datasource.ignore-exception-on-pre-load #当初始化连接池时,是否忽略异常.

  96. spring.datasource.init-sql #当连接创建时,执行的sql

  97. spring.datasource.initial-size #指定启动连接池时,初始建立的连接数量

  98. spring.datasource.initialization-fail-fast #当创建连接池时,没法创建指定最小连接数量是否抛异常

  99. spring.datasource.initialize #指定初始化数据源,是否用data.sql来初始化,默认: true

  100. spring.datasource.isolate-internal-queries #指定内部查询是否要被隔离,默认为false

  101. spring.datasource.jdbc-interceptors #使用Tomcat connection pool时,指定jdbc拦截器,分号分隔

  102. spring.datasource.jdbc-url #指定JDBC URL.

  103. spring.datasource.jmx-enabled #是否开启JMX,默认为: false

  104. spring.datasource.jndi-name #指定jndi的名称.

  105. spring.datasource.leak-detection-threshold #使用Hikari connection pool时,多少毫秒检测一次连接泄露.

  106. spring.datasource.log-abandoned #使用DBCP connection pool,是否追踪废弃statement或连接,默认为: false

  107. spring.datasource.log-validation-errors #当使用Tomcat connection pool是否打印校验错误.

  108. spring.datasource.login-timeout #指定连接数据库的超时时间.

  109. spring.datasource.max-active #指定连接池中最大的活跃连接数.

  110. spring.datasource.max-age #指定连接池中连接的最大年龄

  111. spring.datasource.max-idle #指定连接池最大的空闲连接数量.

  112. spring.datasource.max-lifetime #指定连接池中连接的最大生存时间,毫秒单位.

  113. spring.datasource.max-open-prepared-statements #指定最大的打开的prepared statements数量.

  114. spring.datasource.max-wait #指定连接池等待连接返回的最大等待时间,毫秒单位.

  115. spring.datasource.maximum-pool-size #指定连接池最大的连接数,包括使用中的和空闲的连接.

  116. spring.datasource.min-evictable-idle-time-millis #指定一个空闲连接最少空闲多久后可被清除.

  117. spring.datasource.min-idle #指定必须保持连接的最小值(For DBCP and Tomcat connection pools)

  118. spring.datasource.minimum-idle #指定连接维护的最小空闲连接数,当使用HikariCP时指定.

  119. spring.datasource.name #指定数据源名.

  120. spring.datasource.num-tests-per-eviction-run #指定运行每个idle object evictor线程时的对象数量

  121. spring.datasource.password #指定数据库密码.

  122. spring.datasource.platform #指定schema要使用的Platform(schema-${platform}.sql),默认为: all

  123. spring.datasource.pool-name #指定连接池名字.

  124. spring.datasource.pool-prepared-statements #指定是否池化statements.

  125. spring.datasource.propagate-interrupt-state #在等待连接时,如果线程被中断,是否传播中断状态.

  126. spring.datasource.read-only #当使用Hikari connection pool时,是否标记数据源只读

  127. spring.datasource.register-mbeans #指定Hikari connection pool是否注册JMX MBeans.

  128. spring.datasource.remove-abandoned #指定当连接超过废弃超时时间时,是否立刻删除该连接.

  129. spring.datasource.remove-abandoned-timeout #指定连接应该被废弃的时间.

  130. spring.datasource.rollback-on-return #在归还连接时,是否回滚等待中的事务.

  131. spring.datasource.schema #指定Schema (DDL)脚本.

  132. spring.datasource.separator #指定初始化脚本的语句分隔符,默认: ;

  133. spring.datasource.sql-script-encoding #指定SQL scripts编码.

  134. spring.datasource.suspect-timeout #指定打印废弃连接前的超时时间.

  135. spring.datasource.test-on-borrow #当从连接池借用连接时,是否测试该连接.

  136. spring.datasource.test-on-connect #创建时,是否测试连接

  137. spring.datasource.test-on-return #在连接归还到连接池时是否测试该连接.

  138. spring.datasource.test-while-idle #当连接空闲时,是否执行连接测试.

  139. spring.datasource.time-between-eviction-runs-millis #指定空闲连接检查、废弃连接清理、空闲连接池大小调整之间的操作时间间隔

  140. spring.datasource.transaction-isolation #指定事务隔离级别,使用Hikari connection pool时指定

  141. spring.datasource.url #指定JDBC URL.

  142. spring.datasource.use-disposable-connection-facade #是否对连接进行包装,防止连接关闭之后被使用.

  143. spring.datasource.use-equals #比较方法名时是否使用String.equals()替换==.

  144. spring.datasource.use-lock #是否对连接操作加锁

  145. spring.datasource.username #指定数据库名.

  146. spring.datasource.validation-interval #指定多少ms执行一次连接校验.

  147. spring.datasource.validation-query #指定获取连接时连接校验的sql查询语句.

  148. spring.datasource.validation-query-timeout #指定连接校验查询的超时时间.

  149. spring.datasource.validation-timeout #设定连接校验的超时时间,当使用Hikari connection pool时指定

  150. spring.datasource.validator-class-name #用来测试查询的validator全限定名.

  151. spring.datasource.xa.data-source-class-name #指定数据源的全限定名.

  152. spring.datasource.xa.properties #指定传递给XA data source的属性

  153.  
  154.  
  155. #data springdata

  156. spring.data.elasticsearch.cluster-name #指定es集群名称,默认: elasticsearch

  157. spring.data.elasticsearch.cluster-nodes #指定es的集群,逗号分隔,不指定的话,则启动client node.

  158. spring.data.elasticsearch.properties #指定要配置的es属性.

  159. spring.data.elasticsearch.repositories.enabled #是否开启es存储,默认为: true

  160. spring.data.jpa.repositories.enabled #是否开启JPA支持,默认为: true

  161. spring.data.mongodb.authentication-database #指定鉴权的数据库名

  162. spring.data.mongodb.database #指定mongodb数据库名

  163. spring.data.mongodb.field-naming-strategy #指定要使用的FieldNamingStrategy.

  164. spring.data.mongodb.grid-fs-database #指定GridFS database的名称.

  165. spring.data.mongodb.host #指定Mongo server host.

  166. spring.data.mongodb.password #指定Mongo server的密码.

  167. spring.data.mongodb.port #指定Mongo server port.

  168. spring.data.mongodb.repositories.enabled #是否开启mongodb存储,默认为true

  169. spring.data.mongodb.uri #指定Mongo database URI.默认:mongodb://localhost/test

  170. spring.data.mongodb.username #指定登陆mongodb的用户名.

  171. spring.data.rest.base-path #指定暴露资源的基准路径.

  172. spring.data.rest.default-page-size #指定每页的大小,默认为: 20

  173. spring.data.rest.limit-param-name #指定limit的参数名,默认为: size

  174. spring.data.rest.max-page-size #指定最大的页数,默认为1000

  175. spring.data.rest.page-param-name #指定分页的参数名,默认为: page

  176. spring.data.rest.return-body-on-create #当创建完实体之后,是否返回body,默认为false

  177. spring.data.rest.return-body-on-update #在更新完实体后,是否返回body,默认为false

  178. spring.data.rest.sort-param-name #指定排序使用的key,默认为: sort

  179. spring.data.solr.host #指定Solr host,如果有指定了zk的host的话,则忽略。默认为: http://127.0.0.1:8983/solr

  180. spring.data.solr.repositories.enabled #是否开启Solr repositories,默认为: true

  181. spring.data.solr.zk-host #指定zk的地址,格式为HOST:PORT.

  182.  
  183. #----------------------------------------

  184. #DEVTOOLS属性

  185. #----------------------------------------

  186.  
  187. #DEVTOOLS(DevToolsProperties)

  188. spring.devtools.livereload.enabled = true #启用livereload.com兼容的server。

  189. spring.devtools.livereload.port = 35729 #服务器端口。

  190. spring.devtools.restart.additional-exclude = #应该从触发完全重新启动时排除的其他模式。

  191. spring.devtools.restart.additional-paths = #额外的路径来观察变化。

  192. spring.devtools.restart.enabled = true #启用自动重启。

  193. spring.devtools.restart.exclude = META-INF /行家/ **,META-INF /资源/ **,资源/ **,静态/ **,公共/ **,模板/ **,** / * Test.class,** / * Tests.class,git.properties#应该排除触发完全重启的模式。

  194. spring.devtools.restart.poll-interval = 1000 #polling 路径更改之间等待的时间(以毫秒为单位)。

  195. spring.devtools.restart.quiet-period = 400 #触发重新启动之前,没有任何类路径变化所需的静默时间(以毫秒为单位)。

  196. spring.devtools.restart.trigger-file = #特定文件的名称,在更改时会触发重新启动检查。如果未指定任何类路径文件更改将触发重新启动。

  197.  
  198.  
  199. #DEVTOOLS REMOTE DEVTOOLS(RemoteDevToolsProperties)

  200. spring.devtools.remote.context-path = #用于处理远程连接的上下文路径。

  201. spring.devtools.remote.debug.enabled = true #启用远程调试支持。

  202. spring.devtools.remote.debug.local-port = 8000 #本地远程调试服务器端口。

  203. spring.devtools.remote.proxy.host = #用于连接远程应用程序的代理主机。

  204. spring.devtools.remote.proxy.port = #用于连接远程应用程序的代理端口。

  205. spring.devtools.remote.restart.enabled = true #启用远程重启。

  206. spring.devtools.remote.secret = #建立连接所需的共享密钥(需要启用远程支持)。

  207. spring.devtools.remote.secret-header-name = X-AUTH-TOKEN #用于传输共享密钥的HTTP头。

  208.  
  209.  
  210. #----------------------------------------

  211. #执行器属性

  212. #----------------------------------------

  213.  
  214. #ENDPOINTS(AbstractEndpoint子类)

  215. endpoints.enabled = true #启用端点。

  216. endpoints.sensitive = #默认的端点敏感设置。

  217. endpoints.actuator.enabled = true #启用端点。

  218. endpoints.actuator.path = #端点URL路径。

  219. endpoints.actuator.sensitive = false #在端点上启用安全性。

  220. endpoints.autoconfig.enabled = #启用端点。

  221. endpoints.autoconfig.id = #端点标识符。

  222. endpoints.autoconfig.sensitive = #标记端点是否暴露敏感信息。

  223. endpoints.beans.enabled = #启用端点。

  224. endpoints.beans.id = #端点标识符。

  225. endpoints.beans.sensitive = #标记端点是否暴露敏感信息。

  226. endpoints.configprops.enabled = #启用端点。

  227. endpoints.configprops.id = #端点标识符。

  228. endpoints.configprops.keys-to-sanitize #应该清理的密钥。键可以是属性以或正则表达式结束的简单字符串。

  229. endpoints.configprops.sensitive = #标记端点是否公开敏感信息。

  230. endpoints.docs.curies.enabled = false #启用居里代。

  231. endpoints.docs.enabled = true #启用执行器文档终结点。

  232. endpoints.docs.path = / docs #

  233. endpoints.docs.sensitive = false #

  234.  
  235.  
  236. #终端CORS配置(EndpointCorsProperties)

  237. endpoints.cors.allow-credentials = #设置是否支持凭据。未设置时,不支持凭证。

  238. endpoints.cors.allowed-headers = #在请求中允许使用逗号分隔的标题列表。'*'允许所有标题。

  239. endpoints.cors.allowed-methods = GET #逗号分隔的允许的方法列表。'*'允许所有的方法。

  240. endpoints.cors.allowed-origins = #逗号分隔的起源列表允许。'*'允许所有的来源。未设置时,CORS支持被禁用。

  241. endpoints.cors.exposed-headers = #包含在响应中的逗号分隔的标题列表。

  242. endpoints.cors.max-age = 1800 #以秒为单位,客户端可以缓存飞行前请求的响应。

  243.  
  244. #JMX ENDPOINT(EndpointMBeanExportProperties)

  245. endpoints.jmx.domain = #JMX域名。如果设置,则用“spring.jmx.default-domain”的值初始化。

  246. endpoints.jmx.enabled = true #启用所有端点的JMX导出。

  247. endpoints.jmx.static-names = #附加到所有表示端点的MBean的ObjectName的静态属性。

  248. endpoints.jmx.unique-names = false #确保ObjectNames在发生冲突时被修改。

  249.  
  250.  
  251. #flyway

  252. flyway.baseline-description #对执行迁移时基准版本的描述.

  253. flyway.baseline-on-migrate #当迁移时发现目标schema非空,而且带有没有元数据的表时,是否自动执行基准迁移,默认false.

  254. flyway.baseline-version #开始执行基准迁移时对现有的schema的版本打标签,默认值为1.

  255. flyway.check-location #检查迁移脚本的位置是否存在,默认false.

  256. flyway.clean-on-validation-error #当发现校验错误时是否自动调用clean,默认false.

  257. flyway.enabled #是否开启flywary,默认true.

  258. flyway.encoding #设置迁移时的编码,默认UTF-8.

  259. flyway.ignore-failed-future-migration #当读取元数据表时是否忽略错误的迁移,默认false.

  260. flyway.init-sqls #当初始化好连接时要执行的SQL.

  261. flyway.locations #迁移脚本的位置,默认db/migration.

  262. flyway.out-of-order #是否允许无序的迁移,默认false.

  263. flyway.password #目标数据库的密码.

  264. flyway.placeholder-prefix #设置每个placeholder的前缀,默认${.

  265. flyway.placeholder-replacement #placeholders是否要被替换,默认true.

  266. flyway.placeholder-suffix #设置每个placeholder的后缀,默认}.

  267. flyway.placeholders.[placeholder name] #设置placeholder的value

  268. flyway.schemas #设定需要flywary迁移的schema,大小写敏感,默认为连接默认的schema.

  269. flyway.sql-migration-prefix #迁移文件的前缀,默认为V.

  270. flyway.sql-migration-separator #迁移脚本的文件名分隔符,默认__

  271. flyway.sql-migration-suffix #迁移脚本的后缀,默认为.sql

  272. flyway.table #flyway使用的元数据表名,默认为schema_version

  273. flyway.target #迁移时使用的目标版本,默认为latest version

  274. flyway.url #迁移时使用的JDBC URL,如果没有指定的话,将使用配置的主数据源

  275. flyway.user #迁移数据库的用户名

  276. flyway.validate-on-migrate #迁移时是否校验,默认为true.

  277.  
  278. #FREEMARKER(FreeMarkerAutoConfiguration)

  279. spring.freemarker.allowRequestOverride = false #设置HttpServletRequest属性是否允许覆盖(隐藏)控制器生成的相同名称的模型属性。

  280. spring.freemarker.allowSessionOverride = false #设置HttpSession属性是否允许覆盖(隐藏)控制器生成的相同名称的模型属性。

  281. spring.freemarker.cache = true #使用模板缓存。

  282. spring.freemarker.charset=UTF-8 # Template encoding.

  283. spring.freemarker.checkTemplateLocation = true #检查模板位置是否存在spring.freemarker.check-template-location=true

  284. spring.freemarker.contentType = text / html #Content-Type

  285. spring.freemarker.exposeRequestAttributes = false #在与模板合并之前,设置是否应该将所有请求属性添加到模型中。spring.freemarker.expose-request-attributes=false

  286. spring.freemarker.exposeSessionAttributes = false #在与模板合并之前,设置是否应该将所有HttpSession属性添加到模型中。spring.freemarker.expose-session-attributes=false

  287. spring.freemarker.exposeSpringMacroHelpers = false #设定是否以springMacroRequestContext的形式暴露RequestContext给Spring’s macro library使用 spring.freemarker.expose-spring-macro-helpers=true

  288. spring.freemarker.prefer-file-system-access=true #是否优先从文件系统加载template,以支持热加载,默认为true

  289. spring.freemarker.prefix = #在构建URL时,前缀被预先指定以查看名称。

  290. spring.freemarker.requestContextAttribute = #所有视图的RequestContext属性的名称. freemarker.request-context-attribute=

  291. spring.freemarker.settings.* = #Well-known FreeMarker keys which will be passed to FreeMarker's Configuration

  292. spring.freemarker.suffix = .ftl #在构建URL时附加到视图名称后面的后缀

  293. spring.freemarker.templateEncoding = UTF- 8

  294. spring.freemarker.templateLoaderPath =classpath:/templates #设定ftl文件路径 类路径:/模板/

  295. spring.freemarker.viewNames = #可以解析的视图名称的白名单

  296. spring.mvc.static-path-pattern=/static/** #设定静态文件路径,js,css等

  297.  
  298.  
  299. #GIT信息

  300. spring.git.properties = #生成的git信息属性文件的资源引用。

  301.  
  302.  
  303. #GROOVY模板(GroovyTemplateAutoConfiguration)

  304. spring.groovy.template.allow-request-override #指定HttpServletRequest的属性是否可以覆盖controller的model的同名项

  305. spring.groovy.template.allow-session-override #指定HttpSession的属性是否可以覆盖controller的model的同名项

  306. spring.groovy.template.cache #是否开启模板缓存

  307. .spring.groovy.template.charset #指定Template编码

  308. .spring.groovy.template.check-template-location #是否检查模板的路径是否存在.

  309. spring.groovy.template.configuration.auto-escape #是否在渲染模板时自动排查model的变量,默认为: false

  310. spring.groovy.template.configuration.auto-indent #是否在渲染模板时自动缩进,默认为false

  311. spring.groovy.template.configuration.auto-indent-string #如果自动缩进启用的话,是使用SPACES还是TAB,默认为: SPACES

  312. spring.groovy.template.configuration.auto-new-line #渲染模板时是否要输出换行,默认为false

  313. spring.groovy.template.configuration.base-template-class #指定template base class.

  314. spring.groovy.template.configuration.cache-templates #是否要缓存模板,默认为true

  315. spring.groovy.template.configuration.declaration-encoding #在写入declaration header时使用的编码

  316. spring.groovy.template.configuration.expand-empty-elements #是使用<br/>这种形式,还是<br></br>这种展开模式,默认为: false)

  317. spring.groovy.template.configuration.locale #指定template locale.

  318. spring.groovy.template.configuration.new-line-string #当启用自动换行时,换行的输出,默认为系统的line.separator属性的值

  319. spring.groovy.template.configuration.resource-loader-path #指定groovy的模板路径,默认为classpath:/templates/

  320. spring.groovy.template.configuration.use-double-quotes #指定属性要使用双引号还是单引号,默认为false

  321. spring.groovy.template.content-type #指定Content-Type.

  322. spring.groovy.template.enabled #是否开启groovy模板的支持.

  323. spring.groovy.template.expose-request-attributes #设定所有request的属性在merge到模板的时候,是否要都添加到model中.

  324. spring.groovy.template.expose-session-attributes #设定所有request的属性在merge到模板的时候,是否要都添加到model中.

  325. spring.groovy.template.expose-spring-macro-helpers #设定是否以springMacroRequestContext的形式暴露RequestContext给Spring’s macro library使用

  326. spring.groovy.template.prefix #指定模板的前缀.

  327. spring.groovy.template.request-context-attribute #指定RequestContext属性的名.

  328. spring.groovy.template.resource-loader-path #指定模板的路径,默认为: classpath:/templates/

  329. spring.groovy.template.suffix #指定模板的后缀

  330. spring.groovy.template.view-names #指定要使用模板的视图名称.

  331.  
  332.  
  333. #h2

  334. spring.h2.console.enabled #是否开启控制台,默认为false

  335. spring.h2.console.path #指定控制台路径,默认为: /h2-console

  336.  
  337.  
  338. #hornetq (HornetQProperties)

  339. spring.hornetq.embedded.cluster-password #指定集群的密码,默认启动时随机生成.

  340. spring.hornetq.embedded.data-directory #指定Journal file 的目录. 如果不开启持久化则不必指定.

  341. spring.hornetq.embedded.enabled #是否开启内嵌模式,默认:true

  342. spring.hornetq.embedded.persistent #是否开启persistent store,默认: false

  343. spring.hornetq.embedded.queues #指定启动是创建的queue,多个以逗号分隔,默认: []

  344. spring.hornetq.embedded.server-id #指定Server ID. 默认使用自增数字,从0开始.

  345. spring.hornetq.embedded.topics #指定启动时创建的topic,多个以逗号分隔,默认: []

  346. spring.hornetq.host #指定HornetQ broker 的host,默认: localhost

  347. spring.hornetq.mode #指定HornetQ 的部署模式,默认是auto-detected,也可以指定native 或者 embedded.

  348. spring.hornetq.port #指定HornetQ broker 端口,默认: 5445

  349.  
  350.  
  351. #http

  352. spring.hateoas.apply-to-primary-object-mapper #设定是否对object mapper也支持HATEOAS,默认为: true

  353. spring.http.converters.preferred-json-mapper #是否优先使用JSON mapper来转换.

  354. spring.http.encoding.charset #指定http请求和相应的Charset,默认: UTF-8

  355. spring.http.encoding.enabled #是否开启http的编码支持,默认为true

  356. spring.http.encoding.force #是否强制对http请求和响应进行编码,默认为true

  357.  
  358.  
  359. #jersey

  360. spring.jersey.filter.order #指定Jersey filter的order,默认为: 0

  361. spring.jersey.init #指定传递给Jersey的初始化参数.

  362. spring.jersey.type #指定Jersey的集成类型,可以是servlet或者filter.

  363.  
  364.  
  365. #jms

  366. spring.jms.jndi-name #指定Connection factory JNDI 名称.

  367. spring.jms.listener.acknowledge-mode #指定ack模式,默认自动ack.

  368. spring.jms.listener.auto-startup #是否启动时自动启动jms,默认为: true

  369. spring.jms.listener.concurrency #指定最小的并发消费者数量.

  370. spring.jms.listener.max-concurrency #指定最大的并发消费者数量.

  371. spring.jms.pub-sub-domain #是否使用默认的destination type来支持 publish/subscribe,默认: false

  372.  
  373. jmx

  374. spring.jmx.default-domain #指定JMX domain name.

  375. spring.jmx.enabled #是否暴露jmx,默认为true

  376. spring.jmx.server #指定MBeanServer bean name. 默认为: mbeanServer)

  377.  
  378.  
  379. #jooq

  380. spring.jooq.sql-dialect #指定JOOQ使用的SQLDialect,比如POSTGRES.

  381. #Messages

  382. spring.messages.basename #指定message的basename,多个以逗号分隔,如果不加包名的话,默认从classpath路径开始,默认: messages

  383. spring.messages.cache-seconds #设定加载的资源文件缓存失效时间,-1的话为永不过期,默认为-1

  384. spring.messages.encoding #设定Message bundles的编码,默认: UTF-8

  385.  
  386.  
  387. #JPA

  388. spring.jpa.database #指定目标数据库.

  389. spring.jpa.database-platform #指定目标数据库的类型.

  390. spring.jpa.generate-ddl #是否在启动时初始化schema,默认为false

  391. spring.jpa.hibernate.ddl-auto #指定DDL mode (none, validate, update, create, create-drop). 当使用内嵌数据库时,默认是create-drop,否则为none.

  392. spring.jpa.hibernate.naming-strategy #指定命名策略.

  393. spring.jpa.open-in-view #是否注册OpenEntityManagerInViewInterceptor,绑定JPA EntityManager到请求线程中,默认为: true

  394. spring.jpa.properties #添加额外的属性到JPA provider.

  395. spring.jpa.show-sql #是否开启sql的log,默认为: false

  396.  
  397.  
  398. #json

  399. spring.jackson.date-format #指定日期格式,比如yyyy-MM-dd HH:mm:ss,或者具体的格式化类的全限定名

  400. spring.jackson.deserialization #是否开启Jackson的反序列化

  401. spring.jackson.generator #是否开启json的generators.

  402. spring.jackson.joda-date-time-format #指定Joda date/time的格式,比如yyyy-MM-dd HH:mm:ss). 如果没有配置的话,dateformat会作为backup

  403. spring.jackson.locale #指定json使用的Locale.

  404. spring.jackson.mapper #是否开启Jackson通用的特性.

  405. spring.jackson.parser #是否开启jackson的parser特性.

  406. spring.jackson.property-naming-strategy #指定PropertyNamingStrategy (CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES)或者指定PropertyNamingStrategy子类的全限定类名.

  407. spring.jackson.serialization #是否开启jackson的序列化.

  408. spring.jackson.serialization-inclusion #指定序列化时属性的inclusion方式,具体查看JsonInclude.Include枚举.

  409. spring.jackson.time-zone #指定日期格式化时区,比如America/Los_Angeles或者GMT+10.

  410.  
  411.  
  412. #JTA

  413. spring.jta.allow-multiple-lrc #是否允许 multiple LRC,默认为: false

  414. spring.jta.asynchronous2-pc #指定两阶段提交是否可以异步,默认为: false

  415. spring.jta.background-recovery-interval #指定多少分钟跑一次recovery process,默认为: 1

  416. spring.jta.background-recovery-interval-seconds #指定多久跑一次recovery process,默认: 60

  417. spring.jta.current-node-only-recovery #是否过滤掉其他非本JVM的recovery,默认为: true

  418. spring.jta.debug-zero-resource-transaction #是否追踪没有使用指定资源的事务,默认为: false

  419. spring.jta.default-transaction-timeout #设定默认的事务超时时间,默认为60

  420. spring.jta.disable-jmx #是否禁用jmx,默认为false

  421. spring.jta.enabled #是否开启JTA support,默认为: true

  422. spring.jta.exception-analyzer #设置指定的异常分析类

  423. spring.jta.filter-log-status #使用Bitronix Transaction Manager时,是否写mandatory logs,开启的话,可以节省磁盘空间,但是调试会复杂写,默认为false

  424. spring.jta.force-batching-enabled #使用Bitronix Transaction Manager时,是否批量写磁盘,默认为true.

  425. spring.jta.forced-write-enabled #使用Bitronix Transaction Manager时,是否强制写日志到磁盘,默认为true

  426. spring.jta.graceful-shutdown-interval #当使用Bitronix Transaction Manager,指定shutdown时等待事务结束的时间,超过则中断,默认为60

  427. spring.jta.jndi-transaction-synchronization-registry-name #当使用Bitronix Transaction Manager时,在JNDI下得事务同步registry,默认为: java:comp/TransactionSynchronizationRegistry

  428. spring.jta.jndi-user-transaction-name #指定在JNDI使用Bitronix Transaction Manager的名称,默认:java:comp/UserTransaction

  429. spring.jta.journal #当使用Bitronix Transaction Manager,指定The journal是否disk还是null还是一个类的全限定名,默认disk

  430. spring.jta.log-dir #Transaction logs directory.

  431. spring.jta.log-part1-filename #指定The journal fragment文件1的名字,默认: btm1.tlog

  432. spring.jta.log-part2-filename #指定The journal fragment文件2的名字,默认: btm2.tlog

  433. spring.jta.max-log-size-in-mb #指定journal fragments大小的最大值. 默认: 2M

  434. spring.jta.resource-configuration-filename #指定Bitronix Transaction Manager配置文件名.

  435. spring.jta.server-id #指定Bitronix Transaction Manager实例的id.

  436. spring.jta.skip-corrupted-logs #是否忽略corrupted log files文件,默认为false.

  437. spring.jta.transaction-manager-id #指定Transaction manager的唯一标识.

  438. spring.jta.warn-about-zero-resource-transaction #当使用Bitronix Transaction Manager时,是否对没有使用指定资源的事务进行警告,默认为: true

  439.  
  440.  
  441. #mail

  442. spring.mail.default-encoding #指定默认MimeMessage的编码,默认为: UTF-8

  443. spring.mail.host #指定SMTP server host.

  444. spring.mail.jndi-name #指定mail的jndi名称

  445. spring.mail.password #指定SMTP server登陆密码.

  446. spring.mail.port #指定SMTP server port.

  447. spring.mail.properties #指定JavaMail session属性.

  448. spring.mail.protocol #指定SMTP server使用的协议,默认为: smtp

  449. spring.mail.test-connection #指定是否在启动时测试邮件服务器连接,默认为false

  450. spring.mail.username #指定SMTP server的用户名.

  451.  
  452.  
  453. #mobile

  454. spring.mobile.devicedelegatingviewresolver.enable-fallback #是否支持fallback的解决方案,默认false

  455. spring.mobile.devicedelegatingviewresolver.enabled #是否开始device view resolver,默认为: false

  456. spring.mobile.devicedelegatingviewresolver.mobile-prefix #设定mobile端视图的前缀,默认为:mobile/

  457. spring.mobile.devicedelegatingviewresolver.mobile-suffix #设定mobile视图的后缀

  458. spring.mobile.devicedelegatingviewresolver.normal-prefix #设定普通设备的视图前缀

  459. spring.mobile.devicedelegatingviewresolver.normal-suffix #设定普通设备视图的后缀

  460. spring.mobile.devicedelegatingviewresolver.tablet-prefix #设定平板设备视图前缀,默认:tablet/

  461. spring.mobile.devicedelegatingviewresolver.tablet-suffix #设定平板设备视图后缀.

  462. spring.mobile.sitepreference.enabled #是否启用SitePreferenceHandler,默认为: true

  463.  
  464.  
  465. #MONGODB(Mongo性能)

  466. spring.data.mongodb.host = #分贝主机

  467. spring.data.mongodb.port = 27017 #连接端口(默认为 27107 )

  468. spring.data.mongodb.uri = #连接URL

  469. spring.mongodb.embedded.features #指定要开启的特性,逗号分隔.

  470. spring.mongodb.embedded.version #指定要使用的版本,默认: 2.6.10

  471.  
  472.  
  473. #MANAGEMENT HTTP SERVER(ManagementServerProperties)

  474. management.add-application-context-header = true#在每个响应中添加“X-Application-Context”HTTP标头。

  475. management.address = #管理端点应该绑定的网络地址。

  476. management.context-path = #管理端点上下文路径。例如`/执行器`

  477. management.port = #管理端点HTTP端口。默认使用与应用程序相同的端口。

  478. management.security.enabled = true #启用

  479. management.security.role = ADMIN #访问管理端点所需的角色。

  480. management.security.sessions #会话创建策略使用(always, never, if_required, stateless)。

  481.  
  482. #HEALTH INDICATORS健康指标(以前的健康状况*)

  483. management.health.db.enabled = true #启用数据库运行状况检查。

  484. management.health.defaults.enabled = true #启用默认健康指标。

  485. management.health.diskspace.enabled = true #启用磁盘空间运行状况检查。

  486. management.health.diskspace.path = #用于计算可用磁盘空间的路径。

  487. management.health.diskspace.threshold = 0 #应该可用的最小磁盘空间(以字节为单位)。

  488. management.health.elasticsearch.enabled = true #启用elasticsearch运行状况检查。

  489. management.health.elasticsearch.indices = #逗号分隔的索引名称。

  490. management.health.elasticsearch.response-timeout = 100 #等待群集响应的时间(以毫秒为单位)。

  491. management.health.jms.enabled = true #启用JMS运行状况检查。

  492. management.health.mail.enabled = true #启用邮件运行状况检查。

  493. management.health.mongo.enabled = true #启用MongoDB运行状况检查。

  494. management.health.rabbit.enabled = true #启用RabbitMQ健康检查。

  495. management.health.redis.enabled = true #启用Redis运行状况检查。

  496. management.health.solr.enabled = true #启用Solr运行状况检查。

  497. management.health.status.order #以逗号分隔的健康状态列表。

  498. management.trace.include #要包含在跟踪中的项目。

  499.  
  500.  
  501. #METRICS EXPORT(MetricExportProperties)

  502. spring.metrics.export.aggregate.key-pattern = #告诉聚合器如何处理源存储库中的密钥的模式。

  503. spring.metrics.export.aggregate.prefix = #全局存储库的前缀(如果处于活动状态)。

  504. spring.metrics.export.delay-millis = 5000 #输出滴答之间的延迟(以毫秒为单位)。度量标准按照计划导出到外部源。

  505. spring.metrics.export.enabled = true #启用metric 标准导出的标志(假设MetricWriter可用)。

  506. spring.metrics.export.excludes = #要排除的metric 标准名称的模式列表。包括后应用。

  507. spring.metrics.export.includes = #要包含的metric 标准名称的模式列表。

  508. spring.metrics.export.redis.key #Redis存储库导出密钥(如果有效)。

  509. spring.metrics.export.redis.prefix #如果处于活动状态,redis存储库的前缀。

  510. spring.metrics.export.send-latest #根据不导出不变的metric 值的标志关闭所有可用的优化。

  511. spring.metrics.export.statsd.host = #接收导出metric 的statsd server的主机。

  512. spring.metrics.export.statsd.port = 8125 #接收导出metric的statsd server的端口。

  513. spring.metrics.export.statsd.prefix = #统计导出metric的前缀。

  514. spring.metrics.export.triggers。* = #每个MetricWriter bean名称的特定触发器属性。

  515.  
  516.  
  517. #multipart

  518. multipart.enabled #是否开启文件上传支持,默认为true

  519. multipart.file-size-threshold #设定文件写入磁盘的阈值,单位为MB或KB,默认为0

  520. multipart.location #指定文件上传路径.

  521. multipart.max-file-size #指定文件大小最大值,默认1MB

  522. multipart.max-request-size #指定每次请求的最大值,默认为10MB

  523.  
  524.  
  525. #mustcache

  526. spring.mustache.cache #是否Enable template caching.

  527. spring.mustache.charset #指定Template的编码.

  528. spring.mustache.check-template-location #是否检查默认的路径是否存在.

  529. spring.mustache.content-type #指定Content-Type.

  530. spring.mustache.enabled #是否开启mustcache的模板支持.

  531. spring.mustache.prefix #指定模板的前缀,默认: classpath:/templates/

  532. spring.mustache.suffix #指定模板的后缀,默认: .html

  533. spring.mustache.view-names #指定要使用模板的视图名.

  534.  
  535.  
  536. #MVC(SPRING MVC相关的一些配置)

  537. http.mappers.json-pretty-print = false #打印JSON

  538. http.mappers.json-sort-keys = false #排序键

  539. spring.mvc.locale = #设置固定语言环境,例如en_UK

  540. spring.mvc.date-format = #设置固定的日期格式,例如dd / MM / yyyy

  541. spring.mvc.async.request-timeout #设定async请求的超时时间,以毫秒为单位,如果没有设置的话,以具体实现的超时时间为准,比如tomcat的servlet3的话是10秒.

  542. spring.mvc.favicon.enabled #是否支持favicon.ico,默认为: true

  543. spring.mvc.ignore-default-model-on-redirect #在重定向时是否忽略默认model的内容,默认为true

  544. spring.mvc.locale#指定使用的Locale.

  545. spring.mvc.message-codes-resolver-format #指定message codes的格式化策略(PREFIX_ERROR_CODE,POSTFIX_ERROR_CODE).

  546. spring.view.prefix = #MVC视图前缀

  547. spring.view.suffix = #...和后缀

  548. spring.resources.cache-period = #发送到浏览器的标题缓存超时

  549. spring.resources.add-mappings = true #如果 应该添加默认映射

  550.  
  551.  
  552.  
  553.  
  554. #liquibase

  555. liquibase.change-log #Change log 配置文件的路径,默认值为classpath:/db/changelog/db.changelog-master.yaml

  556. liquibase.check-change-log-location #是否坚持change log的位置是否存在,默认为true.

  557. liquibase.contexts #逗号分隔的运行时context列表.

  558. liquibase.default-schema #默认的schema.

  559. liquibase.drop-first #是否首先drop schema,默认为false

  560. liquibase.enabled #是否开启liquibase,默认为true.

  561. liquibase.password #目标数据库密码

  562. liquibase.url #要迁移的JDBC URL,如果没有指定的话,将使用配置的主数据源.

  563. liquibase.user #目标数据用户名

  564.  
  565.  
  566. #logging日志

  567. logging.path = #文件路径

  568. logging.file = myapp.log #文件名称

  569. logging.config = #如果你即想完全掌控日志配置,但又不想用logback.xml作为Logback配置的名字,可以通过logging.config属性指定自定义的名字

  570. logging.level.root=INFO #日志级别 从控制台打印出来的日志级别只有ERROR, WARN 还有INFO,如果你想要打印debug级别的日志,可以配置debug=true

  571. logging.level.org.springframework.web=DEBUG

  572. logging.level.org.hibernate=ERROR

  573.  
  574.  
  575. #rabbitmq

  576. spring.rabbitmq.addresses #指定client连接到的server的地址,多个以逗号分隔.

  577. spring.rabbitmq.dynamic #是否创建AmqpAdmin bean. 默认为: true)

  578. spring.rabbitmq.host #指定RabbitMQ host.默认为: localhost)

  579. spring.rabbitmq.listener.acknowledge-mode #指定Acknowledge的模式.

  580. spring.rabbitmq.listener.auto-startup #是否在启动时就启动mq,默认: true)

  581. spring.rabbitmq.listener.concurrency #指定最小的消费者数量.

  582. spring.rabbitmq.listener.max-concurrency #指定最大的消费者数量.

  583. spring.rabbitmq.listener.prefetch #指定一个请求能处理多少个消息,如果有事务的话,必须大于等于transaction数量.

  584. spring.rabbitmq.listener.transaction-size #指定一个事务处理的消息数量,最好是小于等于prefetch的数量.

  585. spring.rabbitmq.password #指定broker的密码.

  586. spring.rabbitmq.port #指定RabbitMQ 的端口,默认: 5672)

  587. spring.rabbitmq.requested-heartbeat #指定心跳超时,0为不指定.

  588. spring.rabbitmq.ssl.enabled #是否开始SSL,默认: false)

  589. spring.rabbitmq.ssl.key-store #指定持有SSL certificate的key store的路径

  590. spring.rabbitmq.ssl.key-store-password #指定访问key store的密码.

  591. spring.rabbitmq.ssl.trust-store #指定持有SSL certificates的Trust store.

  592. spring.rabbitmq.ssl.trust-store-password #指定访问trust store的密码.

  593. spring.rabbitmq.username #指定登陆broker的用户名.

  594. spring.rabbitmq.virtual-host #指定连接到broker的Virtual host.

  595.  
  596.  
  597. #redis

  598. spring.redis.database #指定连接工厂使用的Database index,默认为: 0

  599. spring.redis.host #指定Redis server host,默认为: localhost

  600. spring.redis.password #指定Redis server的密码

  601. spring.redis.pool.max-active #指定连接池最大的活跃连接数,-1表示无限,默认为8

  602. spring.redis.pool.max-idle #指定连接池最大的空闲连接数,-1表示无限,默认为8

  603. spring.redis.pool.max-wait #指定当连接池耗尽时,新获取连接需要等待的最大时间,以毫秒单位,-1表示无限等待

  604. spring.redis.pool.min-idle #指定连接池中空闲连接的最小数量,默认为0

  605. spring.redis.port #指定redis服务端端口,默认: 6379

  606. spring.redis.sentinel.master #指定redis server的名称

  607. spring.redis.sentinel.nodes #指定sentinel节点,逗号分隔,格式为host:port.

  608. spring.redis.timeout #指定连接超时时间,毫秒单位,默认为0

  609.  
  610.  
  611. #resource

  612. spring.resources.add-mappings #是否开启默认的资源处理,默认为true

  613. spring.resources.cache-period #设定资源的缓存时效,以秒为单位.

  614. spring.resources.chain.cache #是否开启缓存,默认为: true

  615. spring.resources.chain.enabled #是否开启资源 handling chain,默认为false

  616. spring.resources.chain.html-application-cache #是否开启h5应用的cache manifest重写,默认为: false

  617. spring.resources.chain.strategy.content.enabled #是否开启内容版本策略,默认为false

  618. spring.resources.chain.strategy.content.paths #指定要应用的版本的路径,多个以逗号分隔,默认为:[/**]

  619. spring.resources.chain.strategy.fixed.enabled #是否开启固定的版本策略,默认为false

  620. spring.resources.chain.strategy.fixed.paths #指定要应用版本策略的路径,多个以逗号分隔

  621. spring.resources.chain.strategy.fixed.version #指定版本策略使用的版本号

  622. spring.resources.static-locations #指定静态资源路径,默认为classpath:[/META-INF/resources/,/resources/, /static/, /public/]以及context:/

  623.  
  624.  
  625. #security spring security是springboot支持的权限控制系统。

  626. security.basic.authorize-mode #要使用权限控制模式.

  627. security.basic.enabled #是否开启基本的鉴权,默认为true

  628. security.basic.path #需要鉴权的path,多个的话以逗号分隔,默认为[/**]

  629. security.basic.realm #HTTP basic realm 的名字,默认为Spring

  630. security.enable-csrf #是否开启cross-site request forgery校验,默认为false.

  631. security.filter-order #Security filter chain的order,默认为0

  632. security.headers.cache #是否开启http头部的cache控制,默认为false.

  633. security.headers.content-type #是否开启X-Content-Type-Options头部,默认为false.

  634. security.headers.frame #是否开启X-Frame-Options头部,默认为false.

  635. security.headers.hsts #指定HTTP Strict Transport Security (HSTS)模式(none, domain, all).

  636. security.headers.xss #是否开启cross-site scripting (XSS) 保护,默认为false.

  637. security.ignored #指定不鉴权的路径,多个的话以逗号分隔.

  638. security.oauth2.client.access-token-uri #指定获取access token的URI.

  639. security.oauth2.client.access-token-validity-seconds #指定access token失效时长.

  640. security.oauth2.client.additional-information.[key] #设定要添加的额外信息.

  641. security.oauth2.client.authentication-scheme #指定传输不记名令牌(bearer token)的方式(form, header, none,query),默认为header

  642. security.oauth2.client.authorities #指定授予客户端的权限.

  643. security.oauth2.client.authorized-grant-types #指定客户端允许的grant types.

  644. security.oauth2.client.auto-approve-scopes #对客户端自动授权的scope.

  645. security.oauth2.client.client-authentication-scheme #传输authentication credentials的方式(form, header, none, query),默认为header方式

  646. security.oauth2.client.client-id #指定OAuth2 client ID.

  647. security.oauth2.client.client-secret #指定OAuth2 client secret. 默认是一个随机的secret.

  648. security.oauth2.client.grant-type #指定获取资源的access token的授权类型.

  649. security.oauth2.client.id #指定应用的client ID.

  650. security.oauth2.client.pre-established-redirect-uri #服务端pre-established的跳转URI.

  651. security.oauth2.client.refresh-token-validity-seconds #指定refresh token的有效期.

  652. security.oauth2.client.registered-redirect-uri #指定客户端跳转URI,多个以逗号分隔.

  653. security.oauth2.client.resource-ids #指定客户端相关的资源id,多个以逗号分隔.

  654. security.oauth2.client.scope #client的scope

  655. security.oauth2.client.token-name #指定token的名称

  656. security.oauth2.client.use-current-uri #是否优先使用请求中URI,再使用pre-established的跳转URI. 默认为true

  657. security.oauth2.client.user-authorization-uri #用户跳转去获取access token的URI.

  658. security.oauth2.resource.id #指定resource的唯一标识.

  659. security.oauth2.resource.jwt.key-uri #JWT token的URI. 当key为公钥时,或者value不指定时指定.

  660. security.oauth2.resource.jwt.key-value #JWT token验证的value. 可以是对称加密或者PEMencoded RSA公钥. 可以使用URI作为value.

  661. security.oauth2.resource.prefer-token-info #是否使用token info,默认为true

  662. security.oauth2.resource.service-id #指定service ID,默认为resource.

  663. security.oauth2.resource.token-info-uri #token解码的URI.

  664. security.oauth2.resource.token-type #指定当使用userInfoUri时,发送的token类型.

  665. security.oauth2.resource.user-info-uri #指定user info的URI

  666. security.oauth2.sso.filter-order #如果没有显示提供WebSecurityConfigurerAdapter时指定的Filter order.

  667. security.oauth2.sso.login-path #跳转到SSO的登录路径默认为/login.

  668. security.require-ssl #是否对所有请求开启SSL,默认为false.

  669. security.sessions #指定Session的创建策略(always, never, if_required, stateless).

  670. security.user.name #指定默认的用户名,默认为user.

  671. security.user.password #默认的用户密码.

  672. security.user.role #默认用户的授权角色.

  673.  
  674.  
  675. #sendgrid

  676. spring.sendgrid.password #指定SendGrid password.

  677. spring.sendgrid.proxy.host #指定SendGrid proxy host.

  678. spring.sendgrid.proxy.port #指定SendGrid proxy port.

  679. spring.sendgrid.username #指定SendGrid username.

  680.  
  681.  
  682. #server配置

  683. server.address #指定server绑定的地址

  684. server.compression.enabled #是否开启压缩,默认为false.

  685. server.compression.excluded-user-agents #指定不压缩的user-agent,多个以逗号分隔,默认值为:text/html,text/xml,text/plain,text/css

  686. server.compression.mime-types #指定要压缩的MIME type,多个以逗号分隔.

  687. server.compression.min-response-size #执行压缩的阈值,默认为2048

  688. server.context-parameters.[param name] #设置servlet context 参数

  689. server.context-path #设定应用的context-path.

  690. server.display-name #设定应用的展示名称,默认: application

  691. server.jsp-servlet.class-name #设定编译JSP用的servlet,默认: org.apache.jasper.servlet.JspServlet)

  692. server.jsp-servlet.init-parameters.[param name] #设置JSP servlet 初始化参数.

  693. server.jsp-servlet.registered #设定JSP servlet是否注册到内嵌的servlet容器,默认true

  694. server.port #设定http监听端口

  695. server.servlet-path #设定dispatcher servlet的监听路径,默认为: /

  696.  
  697.  
  698. #SHELL REMOTE SHELL

  699. shell.auth = simple #认证类型。根据环境自动检测。

  700. shell.auth.jaas.domain =my-domain #JAAS域。

  701. shell.auth.key.path = #认证密钥的路径。这应该指向一个有效的“.pem”文件。

  702. shell.auth.simple.user.name = user #登录用户。

  703. shell.auth.simple.user.password = #登录密码。

  704. shell.auth.spring.roles = ADMIN #用于登录到CRaSH控制台的所需角色的逗号分隔列表。

  705. shell.command-path-patterns = classpath *:/ commands / **,classpath *:/ crash / commands / **#用于查找命令的模式。

  706. shell.command-refresh-interval = -1 #扫描更改并在必要时更新命令(以秒为单位)。

  707. shell.config-path-patterns = #用于查找配置的模式。

  708. shell.disabled-commands #禁用命令的逗号分隔列表。

  709. shell.disabled-plugins = #禁用逗号分隔的插件列表。根据环境,某些插件默认是禁用的。

  710. shell.ssh.auth-timeout = #用户提示重新登录后的毫秒数。

  711. shell.ssh.enabled = true #启用CRaSH SSH支持。

  712. shell.ssh.idle-timeout = #关闭未使用的连接之后的毫秒数。

  713. shell.ssh.key-path = #SSH服务器密钥的路径。

  714. shell.ssh.port = 2000 #SSH端口。

  715. shell.telnet.enabled = false #启用CRaSH telnet支持。如果TelnetPlugin可用,则默认启用。

  716. shell.telnet.port = 5000 #Telnet端口。

  717.  
  718.  
  719. #social

  720. spring.social.auto-connection-views #是否开启连接状态的视图,默认为false

  721. spring.social.facebook.app-id #指定应用id

  722. spring.social.facebook.app-secret #指定应用密码

  723. spring.social.linkedin.app-id #指定应用id

  724. spring.social.linkedin.app-secret #指定应用密码

  725. spring.social.twitter.app-id #指定应用ID.

  726. spring.social.twitter.app-secret #指定应用密码

  727.  
  728.  
  729. #ssl配置

  730. server.ssl.ciphers #是否支持SSL ciphers.

  731. server.ssl.client-auth #设定client authentication是wanted 还是 needed.

  732. server.ssl.enabled #是否开启ssl,默认: true

  733. server.ssl.key-alias #设定key store中key的别名.

  734. server.ssl.key-password #访问key store中key的密码.

  735. server.ssl.key-store #设定持有SSL certificate的key store的路径,通常是一个.jks文件.

  736. server.ssl.key-store-password #设定访问key store的密码.

  737. server.ssl.key-store-provider #设定key store的提供者.

  738. server.ssl.key-store-type #设定key store的类型.

  739. server.ssl.protocol #使用的SSL协议,默认: TLS

  740. server.ssl.trust-store #持有SSL certificates的Trust store.

  741. server.ssl.trust-store-password #访问trust store的密码.

  742. server.ssl.trust-store-provider #设定trust store的提供者.

  743. server.ssl.trust-store-type #指定trust store的类型.

  744.  
  745.  
  746. #tomcat服务器配置(ServerProperties)

  747. server.port = 8080 #端口

  748. server.address = #该服务绑定IP地址,启动服务器时如本机不是该IP地址则抛出异常启动失败,只有特殊需求的情况下才配置

  749. server.session-timeout = #会话超时秒数 默认30

  750. server.context-path = #上下文路径,默认为 '/'

  751. server.servlet-path = #servlet路径,默认为 '/'

  752. server.tomcat.access-log-pattern = #访问日志的日志模式

  753. server.tomcat.access-log-enabled = false #启用访问日志记录

  754. server.tomcat.protocol-header = x -forwarded-proto #ssl转发标头

  755. server.tomcat.accesslog.pattern #设定access logs的格式,默认: common

  756. server.tomcat.accesslog.prefix #设定Log 文件的前缀,默认: access_log

  757. server.tomcat.accesslog.suffix #设定Log 文件的后缀,默认: .log

  758. server.tomcat.background-processor-delay = 30 ; # 后台线程方法的Delay大小: 30

  759. server.tomcat.basedir #设定Tomcat的base 目录,如果没有指定则使用临时目录.

  760. server.tomcat.internal-proxies #设定信任的正则表达式,默认:“10\.\d{1,3}\.\d{1,3}\.\d{1,3}| 192\.168\.\d{1,3}\.\d{1,3}|

  761. #169\.254\.\d{1,3}\.\d{1,3}| 127\.\d{1,3}\.\d{1,3}\.\d{1,3}| 172\.1[6-9]{1}\.\d{1,3}\

  762. #.\d{1,3}| 172\.2[0-9]{1}\.\d{1,3}\.\d{1,3}|172\.3[0-1]{1}\.\d{1,3}\.\d{1,3}”

  763. server.tomcat.max-http-header-size #设定http header的最小值,默认: 0

  764. server.tomcat.max-threads #设定tomcat的最大工作线程数,默认为: 0

  765. server.tomcat.port-header #设定http header使用的,用来覆盖原来port的value.

  766. server.tomcat.protocol-header #设定Header包含的协议,通常是 X-Forwarded-Proto,如果remoteIpHeader有值,则将设置为RemoteIpValve.

  767. server.tomcat.protocol-header-https-value #设定使用SSL的header的值,默认https.

  768. server.tomcat.remote-ip-header #设定remote IP的header,如果remoteIpHeader有值,则设置为RemoteIpValve

  769. server.tomcat.uri-encoding #设定URI的解码字符集.

  770.  
  771.  
  772.  
  773. #THYMELEAF(Thymeleaf 模板)

  774. spring.thymeleaf.prefix = #类路径:/模板/ 检查模板位置

  775. spring.thymeleaf.suffix =

  776. spring.thymeleaf.mode = HTML5 #模板的模式

  777. spring.thymeleaf.encoding = UTF- 8

  778. spring.thymeleaf.content-type = text / html#; charset = <编码>

  779. spring.thymeleaf.cache = true #这个开发配置为false,避免改了模板还要重启服务器

  780.  
  781.  
  782. #undertow

  783. server.undertow.access-log-dir #设定Undertow access log 的目录,默认: logs

  784. server.undertow.access-log-enabled #是否开启access log,默认: false

  785. server.undertow.access-log-pattern #设定access logs的格式,默认: common

  786. server.undertow.accesslog.dir #设定access log 的目录.

  787. server.undertow.buffer-size #设定buffer的大小.

  788. server.undertow.buffers-per-region #设定每个region的buffer数

  789. server.undertow.direct-buffers #设定堆外内存

  790. server.undertow.io-threads #设定I/O线程数.

  791. server.undertow.worker-threads #设定工作线程数

  792.  
  793.  
  794. #velocity

  795. spring.velocity.allow-request-override #指定HttpServletRequest的属性是否可以覆盖controller的model的同名项

  796. spring.velocity.allow-session-override #指定HttpSession的属性是否可以覆盖controller的model的同名项

  797. spring.velocity.cache #是否开启模板缓存

  798. spring.velocity.charset #设定模板编码

  799. spring.velocity.check-template-location #是否检查模板路径是否存在.

  800. spring.velocity.content-type #设定ContentType的值

  801. spring.velocity.date-tool-attribute #设定暴露给velocity上下文使用的DateTool的名

  802. spring.velocity.enabled #设定是否允许mvc使用velocity

  803. spring.velocity.expose-request-attributes #是否在merge模板的时候,将request属性都添加到model中

  804. spring.velocity.expose-session-attributes #是否在merge模板的时候,将HttpSession属性都添加到model中

  805. spring.velocity.expose-spring-macro-helpers #设定是否以springMacroRequestContext的名来暴露RequestContext给Spring’s macro类库使用

  806. spring.velocity.number-tool-attribute #设定暴露给velocity上下文的NumberTool的名

  807. spring.velocity.prefer-file-system-access #是否优先从文件系统加载模板以支持热加载,默认为true

  808. spring.velocity.prefix #设定velocity模板的前缀.

  809. spring.velocity.properties #设置velocity的额外属性.

  810. spring.velocity.request-context-attribute #设定RequestContext attribute的名.

  811. spring.velocity.resource-loader-path #设定模板路径,默认为: classpath:/templates/

  812. spring.velocity.suffix #设定velocity模板的后缀.

  813. spring.velocity.toolbox-config-location #设定Velocity Toolbox配置文件的路径,比如 /WEB-INF/toolbox.xml.

  814. spring.velocity.view-names #设定需要解析的视图名称.

  815. https://blog.csdn.net/tang430524/article/details/78911556

猜你喜欢

转载自blog.csdn.net/qq_40710674/article/details/90404286
今日推荐