springboot配置⽂件加载顺序与⼀些常⽤配置springboot启动会扫描⼀下位置的application.properties或者l作为默认的配置⽂件
⼯程根⽬录:./config/
⼯程根⽬录:./
classpath:/config/
classpath:/
注意:加载的优先级顺序是从上向下加载,并且所有的⽂件都会被加载,⾼优先级的内容会覆盖底优先级的内容,形成互补配置
配置⽂件: application.* -> application-default.*
取值时读取配置⽂件的顺序为:properties->yaml->yml;
常⽤的springboot配置
1 MVC相关
2 mvc
3 spring.quest-timeout设定async请求的超时时间,以毫秒为单位,如果没有设置的话,以具体实现的超时时间为准,⽐如tomcat的rvlet3的话是10秒.
4 spring.mvc.date-format设定⽇期的格式,⽐如dd/MM/yyyy.
5 spring.abled是否⽀持favicon.ico,默认为: true
6 spring.mvc.ignore-default-model-on-redirect在重定向时是否忽略默认model的内容,默认为true
7 spring.mvc.locale指定使⽤的Locale.
8 ssage-codes-resolver-format指定message codes的格式化策略(PREFIX_ERROR_CODE,POSTFIX_ERROR_CODE).
9 spring.mvc.view.prefix指定mvc视图的前缀.
10 spring.mvc.view.suffix指定mvc视图的后缀.
11
12 messages
ssages.baname指定message的baname,多个以逗号分隔,如果不加包名的话,默认从classpath路径开始,默认: messages
ssages.cache-conds设定加载的资源⽂件缓存失效时间,-1的话为永不过期,默认为-1
有福相的女人面相
ding设定Message bundles的编码,默认: UTF-8
16
17 mobile
able-fallback是否⽀持fallback的解决⽅案,默认fal
abled是否开始device view resolver,默认为: fal
bile-prefix设定mobile端视图的前缀,默认为:mobile/
bile-suffix设定mobile视图的后缀
al-prefix设定普通设备的视图前缀
al-suffix设定普通设备视图的后缀
bile.devicedelegatingviewresolver.tablet-prefix设定平板设备视图前缀,默认:tablet/
bile.devicedelegatingviewresolver.tablet-suffix设定平板设备视图后缀.
abled是否启⽤SitePreferenceHandler,默认为: true
27
28 view
29 spring.view.prefix设定mvc视图的前缀.
30 spring.view.suffix设定mvc视图的后缀.
31
32 resource
sources.add-mappings是否开启默认的资源处理,默认为true
sources.cache-period设定资源的缓存时效,以秒为单位.
sources.chain.cache是否开启缓存,默认为: true
abled是否开启资源 handling chain,默认为fal
sources.chain.html-application-cache是否开启h5应⽤的cache manifest重写,默认为: fal
sources.t.enabled是否开启内容版本策略,默认为fal
sources.t.paths指定要应⽤的版本的路径,多个以逗号分隔,默认为:[/**]
44
45multipart
47multipart.file-size-threshold设定⽂件写⼊磁盘的阈值,单位为MB或KB,默认为0
48multipart.location指定⽂件上传路径.养乌龟放多少水合适
49multipart.max-file-size指定⽂件⼤⼩最⼤值,默认1MB
50multipart.max-request-size指定每次请求的最⼤值,默认为10MB
51
52freemarker
53spring.freemarker.allow-request-override指定HttpServletRequest的属性是否可以覆盖controller的model的同名项
54spring.freemarker.allow-ssion-override指定HttpSession的属性是否可以覆盖controller的model的同名项
55spring.freemarker.cache是否开启template caching.
56spring.freemarker.chart设定Template的编码.
57spring.freemarker.check-template-location是否检查templates路径是否存在.
t-type设定Content-Type.
abled是否允许mvc使⽤freemarker.
po-request-attributes设定所有request的属性在merge到模板的时候,是否要都添加到model中.
po-ssion-attributes设定所有HttpSession的属性在merge到模板的时候,是否要都添加到model中.
po-spring-macro-helpers设定是否以springMacroRequestContext的形式暴露RequestContext给Spring’s macro library使⽤
63spring.freemarker.prefer-file-system-access是否优先从⽂件系统加载template,以⽀持热加载,默认为true
64spring.freemarker.prefix设定freemarker模板的前缀.
quest-context-attribute指定RequestContext属性的名.
ings设定FreeMarker keys.
67spring.freemarker.suffix设定模板的后缀.
plate-loader-path设定模板的加载路径,多个以逗号分隔,默认: [“classpath:/templates/”]
69spring.freemarker.view-names指定使⽤模板的视图列表.
70
71velocity
72spring.velocity.allow-request-override指定HttpServletRequest的属性是否可以覆盖controller的model的同名项
73spring.velocity.allow-ssion-override指定HttpSession的属性是否可以覆盖controller的model的同名项
74spring.velocity.cache是否开启模板缓存
75spring.velocity.chart设定模板编码
76spring.velocity.check-template-location是否检查模板路径是否存在.
t-type设定ContentType的值
78spring.velocity.date-tool-attribute设定暴露给velocity上下⽂使⽤的DateTool的名
abled设定是否允许mvc使⽤velocity
po-request-attributes是否在merge模板的时候,将request属性都添加到model
中
po-ssion-attributes是否在merge模板的时候,将HttpSession属性都添加到model中
po-spring-macro-helpers设定是否以springMacroRequestContext的名来暴露RequestContext给Spring’s macro类库使⽤
83spring.velocity.number-tool-attribute设定暴露给velocity上下⽂的NumberTool的名
84spring.velocity.prefer-file-system-access是否优先从⽂件系统加载模板以⽀持热加载,默认为true
85spring.velocity.prefix设定velocity模板的前缀.
86spring.velocity.properties设置velocity的额外属性.
quest-context-attribute设定RequestContext attribute的名.
source-loader-path设定模板路径,默认为: classpath:/templates/
89spring.velocity.suffix设定velocity模板的后缀.
lbox-config-location设定Velocity Toolbox配置⽂件的路径,⽐如 /l.
91spring.velocity.view-names设定需要解析的视图名称.
92
93thymeleaf
94spring.thymeleaf.cache是否开启模板缓存,默认true
95spring.thymeleaf.check-template-location是否检查模板路径是否存在,默认true
t-type指定Content-Type,默认为: text/html
abled是否允许MVC使⽤Thymeleaf,默认为: true
ding指定模板的编码,默认为: UTF-8
luded-view-names指定不使⽤模板的视图名称,多个以逗号分隔.
de指定模板的模式,具体查看StandardTemplateModeHandlers,默认为: HTML5
101spring.thymeleaf.prefix指定模板的前缀,默认为:classpath:/templates/
102spring.thymeleaf.suffix指定模板的后缀,默认为:.html
plate-resolver-order指定模板的解析顺序,默认为第⼀个.
104spring.thymeleaf.view-names指定使⽤模板的视图名,多个以逗号分隔.
105
106mustcache
107spring.mustache.cache是否Enable template caching.
108spring.mustache.chart指定Template的编码.
109spring.mustache.check-template-location是否检查默认的路径是否存在.
t-type指定Content-Type.
abled是否开启mustcache的模板⽀持.
112spring.mustache.prefix指定模板的前缀,默认: classpath:/templates/
113spring.mustache.suffix指定模板的后缀,默认: .html
114spring.mustache.view-names指定要使⽤模板的视图名.
115
116groovy模板
130是使⽤
131这种形式,还是
132这种展开模式,默认为: fal)
147
148http
149spring.hateoas.apply-to-primary-object-mapper设定是否对object mapper也⽀持HATEOAS,默认为: true
verters.preferred-json-mapper是否优先使⽤JSON mapper来转换.
ding.chart指定http请求和相应的Chart,默认: UTF-8
abled是否开启http的编码⽀持,默认为true
ding.force是否强制对http请求和响应进⾏编码,默认为true
154
155json
156spring.jackson.date-format指定⽇期格式,⽐如yyyy-MM-dd HH:mm:ss,或者具体的格式化类的全限定名
157spring.jackson.derialization是否开启Jackson的反序列化
ator是否开启json的generators.
159spring.jackson.joda-date-time-format指定Joda date/time的格式,⽐如yyyy-MM-dd HH:mm:ss). 如果没有配置的话,dateformat会作为backup
160spring.jackson.locale指定json使⽤的Locale.
161spring.jackson.mapper是否开启Jackson通⽤的特性.
162spring.jackson.parr是否开启jackson的parr特性.
163spring.jackson.property-naming-strategy指定PropertyNamingStrategy (CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES)或者指定PropertyNamingStrategy⼦类的全限定类名. 164spring.jackson.rialization是否开启jackson的序列化.
165spring.jackson.rialization-inclusion指定序列化时属性的inclusion⽅式,具体查看JsonInclude.Include枚举.
166spring.jackson.time-zone指定⽇期格式化时区,⽐如America/Los_Angeles或者GMT+10.
167
168jery
169spring.der指定Jery filter的order,默认为: 0
170spring.jery.init指定传递给Jery的初始化参数.
pe指定Jery的集成类型,可以是rvlet或者filter.
172
173rver相关
174rver配置
175rver.address指定rver绑定的地址
182rver.display-name设定应⽤的展⽰名称,默认: application
183rver.jsp-rvlet.class-name设定编译JSP⽤的rvlet,默认: org.apache.jasper
184.rvlet.JspServlet)
185rver.jsp-rvlet.init-parameters.[param name]设置JSP rvlet 初始化参数.
爱尔兰属于英国吗istered设定JSP rvlet是否注册到内嵌的rvlet容器,默认true
187rver.port设定http监听端⼝
188rver.rvlet-path设定dispatcher rvlet的监听路径,默认为: /
189
190cookie、ssion配置
t指定ssion cookie的comment
kie.domain指定ssion cookie的domain
kie.http-only是否开启HttpOnly.
kie.max-age设定ssion cookie的最⼤age.
kie.name设定Session cookie 的名称.
kie.path设定ssion cookie的路径.
kie.cure设定ssion cookie的“Secure” flag.
198rver.ssion.persistent重启时是否持久化ssion,默认fal
199rver.ssion.timeoutssion的超时时间
acking-modes设定Session的追踪模式(cookie, url, ssl).
201
202ssl配置
203rver.ssl.ciphers是否⽀持SSL ciphers.
204rver.ssl.client-auth设定client authentication是wanted 还是 needed.
abled是否开启ssl,默认: true
206rver.ssl.key-alias设定key store中key的别名.
207rver.ssl.key-password访问key store中key的密码.
208rver.ssl.key-store设定持有SSL certificate的key store的路径,通常是⼀个.jks⽂件.
209rver.ssl.key-store-password设定访问key store的密码.
210rver.ssl.key-store-provider设定key store的提供者.
211rver.ssl.key-store-type设定key store的类型.
212rver.ssl.protocol使⽤的SSL协议,默认: TLS
ust-store持有SSL certificates的Trust store.
ust-store-password访问trust store的密码.
ust-store-provider设定trust store的提供者.
ust-store-type指定trust store的类型.
217
218tomcat
236
237undertow
238rver.undertow.access-log-dir设定Undertow access log 的⽬录,默认: logs
239rver.undertow.access-log-enabled是否开启access log,默认: fal
240rver.undertow.access-log-pattern设定access logs的格式,默认: common
241rver.undertow.accesslog.dir设定access log 的⽬录.
242rver.undertow.buffer-size设定buffer的⼤⼩.
243rver.undertow.buffers-per-region设定每个region的buffer数
244rver.undertow.direct-buffers设定堆外内存
245rver.undertow.io-threads设定I/O线程数.
246rver.undertow.worker-threads设定⼯作线程数
247
248datasource相关
249datasource
标准工资abled是否开启PersistenceExceptionTranslationPostProcessor,默认为true
251spring.datasource.abandon-when-percentage-full设定超时被废弃的连接占到多少⽐例时要被关闭或上报
252spring.datasource.allow-pool-suspension使⽤Hikari pool时,是否允许连接池暂停,默认为: fal
253spring.datasource.alternate-urname-allowed是否允许替代的⽤户名.
254spring.datasource.auto-commit指定updates是否⾃动提交.
255spring.datasource.catalog指定默认的catalog.
it-on-return设置当连接被归还时,是否要提交所有还未完成的事务
tion-init-sql指定连接被创建,再被添加到连接池之前执⾏的sql.
tion-init-sqls使⽤DBCP connection pool时,指定初始化时要执⾏的sql
tion-properties.[key]在使⽤DBCP connection pool时指定要配置的属性
tion-test-query指定校验连接合法性执⾏的sql语句
tion-timeout指定连接的超时时间,毫秒单位.
inue-on-error在初始化数据库时,遇到错误是否继续,默认fal
263spring.datasource.data指定Data (DML)脚本
264spring.datasource.data-source-class-name指定数据源的全限定名.
265spring.datasource.data-source-jndi指定jndi的地址
266spring.datasource.data-source-properties.[key]使⽤Hikari connection pool时,指定要设置的属性
267spring.datasource.db-properties使⽤Tomcat connection pool,指定要设置的属性
268spring.datasource.default-auto-commit是否⾃动提交.
269spring.datasource.default-catalog指定连接默认的catalog.
270spring.datasource.default-read-only是否设置默认连接只读.
271spring.datasource.default-transaction-isolation指定连接的事务的默认隔离级别.
272spring.datasource.driver-class-name指定driver的类名,默认从jdbc url中⾃动探测.
273spring.datasource.fair-queue是否采⽤FIFO返回连接.
274spring.datasource.health-check-properties.[key]使⽤Hikari connection pool时,在⼼跳检查时传递的属性
275spring.datasource.idle-timeout指定连接多久没被使⽤时,被设置为空闲,默认为10ms
276spring.datasource.ignore-exception-on-pre-load当初始化连接池时,是否忽略异常.
277spring.datasource.init-sql当连接创建时,执⾏的sql
278spring.datasource.initial-size指定启动连接池时,初始建⽴的连接数量
279spring.datasource.initialization-fail-fast当创建连接池时,没法创建指定最⼩连接数量是否抛异常
280spring.datasource.initialize指定初始化数据源,是否⽤data.sql来初始化,默认: true
281spring.datasource.isolate-internal-queries指定内部查询是否要被隔离,默认为fal
282spring.datasource.jdbc-interceptors使⽤Tomcat connection pool时,指定jdbc拦截器,分号分隔
283spring.datasource.jdbc-url指定JDBC URL.
284spring.datasource.jmx-enabled是否开启JMX,默认为: fal
285spring.datasource.jndi-name指定jndi的名称.
286spring.datasource.leak-detection-threshold使⽤Hikari connection pool时,多少毫秒检测⼀次连接泄露.
287spring.datasource.log-abandoned使⽤DBCP connection pool,是否追踪废弃statement或连接,默认为: fal
288spring.datasource.log-validation-errors当使⽤Tomcat connection pool是否打印校验错误.
289spring.datasource.login-timeout指定连接数据库的超时时间.
290spring.datasource.max-active指定连接池中最⼤的活跃连接数.
291spring.datasource.max-age指定连接池中连接的最⼤年龄
292spring.datasource.max-idle指定连接池最⼤的空闲连接数量.
293spring.datasource.max-lifetime指定连接池中连接的最⼤⽣存时间,毫秒单位.
294spring.datasource.max-open-prepared-statements指定最⼤的打开的prepared statements数量.
295spring.datasource.max-wait指定连接池等待连接返回的最⼤等待时间,毫秒单位.
296spring.datasource.maximum-pool-size指定连接池最⼤的连接数,包括使⽤中的和空闲的连接.
297spring.datasource.min-evictable-idle-time-millis指定⼀个空闲连接最少空闲多久后可被清除.
298spring.datasource.min-idle指定必须保持连接的最⼩值(For DBCP and Tomcat connection pools)
299spring.datasource.minimum-idle指定连接维护的最⼩空闲连接数,当使⽤HikariCP时指定.
300spring.datasource.name指定数据源名.
301spring.datasource.num-tests-per-eviction-run指定运⾏每个idle object evictor线程时的对象数量
302spring.datasource.password指定数据库密码.
303spring.datasource.platform指定schema要使⽤的Platform(schema-${platform}.sql),默认为: all
304spring.datasource.pool-name指定连接池名字.
305spring.datasource.pool-prepared-statements指定是否池化statements.
306spring.datasource.propagate-interrupt-state在等待连接时,如果线程被中断,是否传播中断状态.
ad-only当使⽤Hikari connection pool时,是否标记数据源只读
ister-mbeans指定Hikari connection pool是否注册JMX MBeans.
ve-abandoned指定当连接超过废弃超时时间时,是否⽴刻删除该连接.
ve-abandoned-timeout指定连接应该被废弃的时间.
llback-on-return在归还连接时,是否回滚等待中的事务.
312spring.datasource.schema指定Schema (DDL)脚本.
313spring.datasource.parator指定初始化脚本的语句分隔符,默认: ;
314spring.datasource.sql-script-encoding指定SQL scripts编码.
315spring.datasource.suspect-timeout指定打印废弃连接前的超时时间.
st-on-borrow当从连接池借⽤连接时,是否测试该连接.
st-on-connect创建时,是否测试连接
st-on-return在连接归还到连接池时是否测试该连接.
st-while-idle当连接空闲时,是否执⾏连接测试.
320spring.datasource.time-between-eviction-runs-millis指定空闲连接检查、废弃连接清理、空闲连接池⼤⼩调整之间的操作时间间隔
ansaction-isolation指定事务隔离级别,使⽤Hikari connection pool时指定
322spring.datasource.url指定JDBC URL.
323spring.datasource.u-disposable-connection-facade是否对连接进⾏包装,防⽌连接关闭之后被使⽤.
324spring.datasource.u-equals⽐较⽅法名时是否使⽤String.equals()替换==.
325spring.datasource.u-lock是否对连接操作加锁
326spring.datasource.urname指定数据库名.
327spring.datasource.validation-interval指定多少ms执⾏⼀次连接校验.
328spring.datasource.validation-query指定获取连接时连接校验的sql查询语句.
329spring.datasource.validation-query-timeout指定连接校验查询的超时时间.
330spring.datasource.validation-timeout设定连接校验的超时时间,当使⽤Hikari connection pool时指定
331spring.datasource.validator-class-name⽤来测试查询的validator全限定名.
332spring.datasource.xa.data-source-class-name指定数据源的全限定名.
333spring.datasource.xa.properties指定传递给XA data source的属性
334
335JPA
336spring.jpa.databa指定⽬标数据库.
337spring.jpa.databa-platform指定⽬标数据库的类型.
ate-ddl是否在启动时初始化schema,默认为fal
339spring.jpa.hibernate.ddl-auto指定DDL mode (none, validate, update, create, create-drop). 当使⽤内嵌数据库时,默认是create-drop,否则为none.
340spring.jpa.hibernate.naming-strategy指定命名策略.
341spring.jpa.open-in-view是否注册OpenEntityManagerInViewInterceptor,绑定JPA EntityManager到请求线程中,默认为: true
342spring.jpa.properties添加额外的属性到JPA provider.
343spring.jpa.show-sql是否开启sql的log,默认为: fal
344
345jooq
346spring.jooq.sql-dialect指定JOOQ使⽤的SQLDialect,⽐如POSTGRES.
347
348h2
abled是否开启控制台,默认为fal
sole.path指定控制台路径,默认为: /h2-console
351
352JTA
353spring.jta.allow-multiple-lrc是否允许 multiple LRC,默认为: fal
354spring.jta.asynchronous2-pc指定两阶段提交是否可以异步,默认为: fal
355spring.jta.background-recovery-interval指定多少分钟跑⼀次recovery process,默认为: 1
356spring.jta.background-recovery-interval-conds指定多久跑⼀次recovery process,默认: 60
357spring.jta.current-node-only-recovery是否过滤掉其他⾮本JVM的recovery,默认为: true
358spring.jta.debug-zero-resource-transaction是否追踪没有使⽤指定资源的事务,默认为: fal
359spring.jta.default-transaction-timeout设定默认的事务超时时间,默认为60
360spring.jta.disable-jmx是否禁⽤jmx,默认为fal
abled是否开启JTA support,默认为: true
ption-analyzer设置指定的异常分析类
363spring.jta.filter-log-status使⽤Bitronix Transaction Manager时,是否写mandatory logs,开启的话,可以节省磁盘空间,但是调试会复杂写,默认为fal
364spring.jta.force-batching-enabled使⽤Bitronix Transaction Manager时,是否批量写磁盘,默认为true.
365spring.jta.forced-write-enabled使⽤Bitronix Transaction Manager时,是否强制写⽇志到磁盘,默认为true
aceful-shutdown-interval当使⽤Bitronix Transaction Manager,指定shutdown时等待事务结束的时间,超过则中断,默认为60
367spring.jta.jndi-transaction-synchronization-registry-name当使⽤Bitronix Transaction Manager时,在JNDI下得事务同步registry,默认为: java:comp/TransactionSynchronizationRegistry 368spring.jta.jndi-ur-transaction-name指定在JNDI使⽤Bitronix Transaction Manager的名称,默认:java:comp/UrTransaction
369spring.jta.journal当使⽤Bitronix Transaction Manager,指定The journal是否disk还是null还是⼀个
类的全限定名,默认disk
370spring.jta.log-dirTransaction logs directory.
371spring.jta.log-part1-filename指定The journal fragment⽂件1的名字,默认: btm1.tlog
372spring.jta.log-part2-filename指定The journal fragment⽂件2的名字,默认: btm2.tlog
373spring.jta.max-log-size-in-mb指定journal fragments⼤⼩的最⼤值. 默认: 2M
source-configuration-filename指定Bitronix Transaction Manager配置⽂件名.
375spring.jta.rver-id指定Bitronix Transaction Manager实例的id.
376spring.jta.skip-corrupted-logs是否忽略corrupted log files⽂件,默认为fal.
ansaction-manager-id指定Transaction manager的唯⼀标识.
378spring.jta.warn-about-zero-resource-transaction当使⽤Bitronix Transaction Manager时,是否对没有使⽤指定资源的事务进⾏警告,默认为: true
379
380NOSQL相关
381cache
382spring.cache.cache-names指定要创建的缓存的名称,逗号分隔(若该缓存实现⽀持的话)
383spring.fig指定初始化EhCache时使⽤的配置⽂件的位置指定.
384spring.cache.guava.spec指定创建缓存要使⽤的spec,具体详见CacheBuilderSpec.
385spring.fig指定初始化Hazelcast时的配置⽂件位置
386spring.fig指定初始化Infinispan时的配置⽂件位置.
387spring.fig指定jcache的配置⽂件.
388spring.cache.jcache.provider指定CachingProvider实现类的全限定名.
pe指定缓存类型
390异想天开
391mongodb
394
395redis
407
408springdata
409spring.data.elasticarch.cluster-name指定es集群名称,默认: elasticarch
410spring.data.elasticarch.cluster-nodes指定es的集群,逗号分隔,不指定的话,则启动client node.
411spring.data.elasticarch.properties指定要配置的es属性.
412spring.abled是否开启es存储,默认为: true
413spring.abled是否开启JPA⽀持,默认为: true
db.authentication-databa指定鉴权的数据库名
db.databa指定mongodb数据库名
db.field-naming-strategy指定要使⽤的FieldNamingStrategy.
db.grid-fs-databa指定GridFS databa的名称.
db.host指定Mongo rver host.
db.password指定Mongo rver的密码.
db.port指定Mongo rver port.
abled是否开启mongodb存储,默认为true
db.uri指定Mongo databa URI.默认:mongodb://localhost/test
db.urname指定登陆mongodb的⽤户名.
st.ba-path指定暴露资源的基准路径.
st.default-page-size指定每页的⼤⼩,默认为: 20
st.limit-param-name指定limit的参数名,默认为: size
st.max-page-size指定最⼤的页数,默认为1000
st.page-param-name指定分页的参数名,默认为: page
st.return-body-on-create当创建完实体之后,是否返回body,默认为fal
st.return-body-on-update在更新完实体后,是否返回body,默认为fal
st.sort-param-name指定排序使⽤的key,默认为: sort
432spring.data.solr.host
433指定Solr host,如果有指定了zk的host的话,则忽略。默认为: 127.0.0.1:8983/solr
434spring.abled是否开启Solr repositories,默认为: true
435spring.data.solr.zk-host指定zk的地址,格式为HOST:PORT.
436
437MQ相关
438activemq
439spring.activemq.broker-url指定ActiveMQ broker的URL,默认⾃动⽣成.
440spring.activemq.in-memory是否是内存模式,默认为true.
441spring.activemq.password指定broker的密码.
442spring.activemq.pooled是否创建PooledConnectionFactory,⽽⾮ConnectionFactory,默认fal
443spring.activemq.ur指定broker的⽤户.
444artemis(HornetQ捐献给apache后的版本)
bedded.cluster-password指定集群的密码,默认是启动时随机⽣成.
bedded.data-directory指定Journal⽂件的⽬录.如果不开始持久化则不必要指定.
abled是否开启内嵌模式,默认true
bedded.persistent是否开启persistent store,默认fal.
bedded.queues指定启动时创建的队列,多个⽤逗号分隔,默认: []
bedded.rver-id指定Server ID. 默认是⼀个⾃增的数字,从0开始.
pics指定启动时创建的topic,多个的话逗号分隔,默认: []
452spring.artemis.host指定Artemis broker 的host. 默认: localhost
de指定Artemis 的部署模式, 默认为auto-detected(也可以为native or embedded).
454spring.artemis.port指定Artemis broker 的端⼝,默认为: 61616
455
456rabbitmq
457spring.rabbitmq.address指定client连接到的rver的地址,多个以逗号分隔.
458spring.rabbitmq.dynamic是否创建AmqpAdmin bean. 默认为: true)
459spring.rabbitmq.host指定RabbitMQ host.默认为: localhost)
460spring.rabbitmq.listener.acknowledge-mode指定Acknowledge的模式.
461spring.rabbitmq.listener.auto-startup是否在启动时就启动mq,默认: true)
462spring.urrency指定最⼩的消费者数量.
463spring.rabbitmq.listener.max-concurrency指定最⼤的消费者数量.
464spring.rabbitmq.listener.prefetch指定⼀个请求能处理多少个消息,如果有事务的话,必须⼤于等于transaction数量.
465spring.ansaction-size指定⼀个事务处理的消息数量,最好是⼩于等于prefetch的数量.
466spring.rabbitmq.password指定broker的密码.
467spring.rabbitmq.port指定RabbitMQ 的端⼝,默认: 5672)
quested-heartbeat指定⼼跳超时,0为不指定.
469spring.abled是否开始SSL,默认: fal)
470spring.rabbitmq.ssl.key-store指定持有SSL certificate的key store的路径
471spring.rabbitmq.ssl.key-store-password指定访问key store的密码.
472spring.ust-store指定持有SSL certificates的Trust store.
473spring.ust-store-password指定访问trust store的密码.
474spring.rabbitmq.urname指定登陆broker的⽤户名.
475spring.rabbitmq.virtual-host指定连接到broker的Virtual host.
476
477hornetq
bedded.cluster-password指定集群的密码,默认启动时随机⽣成.
bedded.data-directory指定Journal file 的⽬录. 如果不开启持久化则不必指定.
abled是否开启内嵌模式,默认:true
bedded.persistent是否开启persistent store,默认: fal
bedded.queues指定启动是创建的queue,多个以逗号分隔,默认: []
bedded.rver-id指定Server ID. 默认使⽤⾃增数字,从0开始.
pics指定启动时创建的topic,多个以逗号分隔,默认: []
485spring.hornetq.host指定HornetQ broker 的host,默认: localhost
de指定HornetQ 的部署模式,默认是auto-detected,也可以指定native 或者 embedded.
487spring.hornetq.port指定HornetQ broker 端⼝,默认: 5445
488
489jms
490spring.jms.jndi-name指定Connection factory JNDI 名称.
491spring.jms.listener.acknowledge-mode指定ack模式,默认⾃动ack.
492spring.jms.listener.auto-startup是否启动时⾃动启动jms,默认为: true
493spring.urrency指定最⼩的并发消费者数量.
494spring.jms.listener.max-concurrency指定最⼤的并发消费者数量.
495spring.jms.pub-sub-domain是否使⽤默认的destination type来⽀持 publish/subscribe,默认: fal
496
497curity相关
498spring curity是springboot⽀持的权限控制系统。
499curity.basic.authorize-mode要使⽤权限控制模式.
abled是否开启基本的鉴权,默认为true
501curity.basic.path需要鉴权的path,多个的话以逗号分隔,默认为[/**]
almHTTP basic realm 的名字,默认为Spring
504curity.filter-orderSecurity filter chain的order,默认为0
505curity.headers.cache是否开启http头部的cache控制,默认为fal.
t-type是否开启X-Content-Type-Options头部,默认为fal.
507curity.headers.frame是否开启X-Frame-Options头部,默认为fal.
508curity.headers.hsts指定HTTP Strict Transport Security (HSTS)模式(none, domain, all).
509curity.headers.xss是否开启cross-site scripting (XSS) 保护,默认为fal.
510curity.ignored指定不鉴权的路径,多个的话以逗号分隔.
511curity.oauth2.client.access-token-uri指定获取access token的URI.
512curity.oauth2.client.access-token-validity-conds指定access token失效时长.
513curity.oauth2.client.additional-information.[key]设定要添加的额外信息.
514curity.oauth2.client.authentication-scheme指定传输不记名令牌(bearer token)的⽅式(form, header, none,query),默认为header
515curity.oauth2.client.authorities指定授予客户端的权限.
516curity.oauth2.client.authorized-grant-types指定客户端允许的grant types.
517curity.oauth2.client.auto-approve-scopes对客户端⾃动授权的scope.
518curity.oauth2.client.client-authentication-scheme传输authentication credentials的⽅式(form, header, none, query),默认为header⽅式519curity.oauth2.client.client-id指定OAuth2 client ID.
520curity.oauth2.client.client-cret指定OAuth2 client cret. 默认是⼀个随机的cret.
521curity.ant-type指定获取资源的access token的授权类型.
522curity.oauth2.client.id指定应⽤的client ID.
523curity.oauth2.client.pre-established-redirect-uri服务端pre-established的跳转URI.
524curity.fresh-token-validity-conds指定refresh token的有效期.
525curity.istered-redirect-uri指定客户端跳转URI,多个以逗号分隔.
526curity.source-ids指定客户端相关的资源id,多个以逗号分隔.
527curity.oauth2.client.scopeclient的scope
528curity.ken-name指定token的名称
529curity.oauth2.client.u-current-uri是否优先使⽤请求中URI,再使⽤pre-established的跳转URI. 默认为true
530curity.oauth2.client.ur-authorization-uri⽤户跳转去获取access token的URI.
source.id指定resource的唯⼀标识.
source.jwt.key-uriJWT token的URI. 当key为公钥时,或者value不指定时指定.
source.jwt.key-valueJWT token验证的value. 可以是对称加密或者PEMencoded RSA公钥. 可以使⽤URI作为value. source.prefer-token-info是否使⽤token info,默认为true
source.rvice-id指定rvice ID,默认为resource.
ken-info-uritoken解码的URI.
ken-type指定当使⽤urInfoUri时,发送的token类型.
source.ur-info-uri指定ur info的URI
539curity.oauth2.sso.filter-order如果没有显⽰提供WebSecurityConfigurerAdapter时指定的Filter order.
540curity.oauth2.sso.login-path跳转到SSO的登录路径默认为/login.
542curity.ssions指定Session的创建策略(always, never, if_required, stateless).
543curity.ur.name指定默认的⽤户名,默认为ur.
544curity.ur.password默认的⽤户密码.
le默认⽤户的授权⾓⾊.
546
547Migration相关
548flyway
549flyway.baline-description对执⾏迁移时基准版本的描述.
550flyway.baline-on-migrate当迁移时发现⽬标schema⾮空,⽽且带有没有元数据的表时,是否⾃动执⾏基准迁移,默认fal.
551flyway.baline-version开始执⾏基准迁移时对现有的schema的版本打标签,默认值为1.
552flyway.check-location检查迁移脚本的位置是否存在,默认fal.
553flyway.clean-on-validation-error当发现校验错误时是否⾃动调⽤clean,默认fal.
556flyway.ignore-failed-future-migration当读取元数据表时是否忽略错误的迁移,默认fal.
557flyway.init-sqls当初始化好连接时要执⾏的SQL.
558flyway.locations迁移脚本的位置,默认db/migration.
559flyway.out-of-order是否允许⽆序的迁移,默认fal.
560flyway.password⽬标数据库的密码.
561flyway.placeholder-prefix设置每个placeholder的前缀,默认${.
562flyway.placeholder-replacementplaceholders是否要被替换,默认true.
563flyway.placeholder-suffix设置每个placeholder的后缀,默认}.
台灯的英语
564flyway.placeholders.[placeholder name]设置placeholder的value
565flyway.schemas设定需要flywary迁移的schema,⼤⼩写敏感,默认为连接默认的schema.
566flyway.sql-migration-prefix迁移⽂件的前缀,默认为V.
567flyway.sql-migration-parator迁移脚本的⽂件名分隔符,默认__
568flyway.sql-migration-suffix迁移脚本的后缀,默认为.sql
569flyway.tableflyway使⽤的元数据表名,默认为schema_version
570flyway.target迁移时使⽤的⽬标版本,默认为latest version
571flyway.url迁移时使⽤的JDBC URL,如果没有指定的话,将使⽤配置的主数据源
572flyway.ur迁移数据库的⽤户名
573flyway.validate-on-migrate迁移时是否校验,默认为true.
574
575liquiba
576liquiba.change-logChange log 配置⽂件的路径,默认值为classpath:/db/changelog/db.changelog-master.yaml
577liquiba.check-change-log-location是否坚持change log的位置是否存在,默认为true.
财务管理环境
579liquiba.default-schema默认的schema.
580liquiba.drop-first是否⾸先drop schema,默认为fal
582liquiba.password⽬标数据库密码
583liquiba.url要迁移的JDBC URL,如果没有指定的话,将使⽤配置的主数据源.
584liquiba.ur⽬标数据⽤户名
585
586其他
587aop