springboot 配置文件說明


你能夠在本身建立的組件上使用@ConfigurationProperties註解,而Spring Boot自動配置的
不少組件也添加了@ConfigurationProperties註解,能夠經過Spring Boot支持的各類屬性源
對其進行配置。
例如,要指定內嵌的Tomcat或Jetty服務器應監聽的端口,能夠設置server.port屬性。這個
屬性能夠設置於application.properties、application.ymlcss


 flyway.baseline-description
執行基線時標記已有Schema的描述。html


 flyway.baseline-on-migrate
在沒有元數據表的狀況下,針對非空Schema執行遷移時是否自動調用基線。(默認值:false。)java


 flyway.baseline-version
執行基線時用來標記已有Schema的版本。(默認值:1。)node


 flyway.check-location
檢查遷移腳本所在的位置是否存在。(默認值:false。)正則表達式


 flyway.clean-on-validation-error
在驗證錯誤時,是否自動執行清理。(默認值:false。)redis


 flyway.enabled
開啓Flyway。(默認值:true。)算法


 flyway.encoding
設置SQL遷移文件的編碼。(默認值:UTF-8。)

 flyway.ignore-failed-future-migration
在讀元數據表時,是否忽略失敗的後續遷移。(默認值:false。)spring


 flyway.init-sqls
獲取鏈接後當即執行初始化的SQL語句。sql


 flyway.locations
遷移腳本的位置。(默認值:db/migration。)mongodb


 flyway.out-of-order
是否容許亂序(out of order)遷移。(默認值:false。)


 flyway.password
待遷移數據庫的登陸密碼。


 flyway.placeholder-prefix
設置每一個佔位符的前綴。(默認值:${。)


 flyway.placeholder-replacement
是否要替換佔位符。(默認值:true。)


 flyway.placeholder-suffix
設置佔位符的後綴。(默認值:}。)


 flyway.placeholders.[placeholder name]
設置佔位符的值。


 flyway.schemas
Flyway管理的Schema列表,區分大小寫。默認鏈接對應的默認Schema。


 flyway.sql-migration-prefix
SQL遷移的文件名前綴。(默認值:V。)


 flyway.sql-migration-separator
SQL遷移的文件名分隔符。(默認值:__。)


 flyway.sql-migration-suffix
SQL遷移的文件名後綴。(默認值:.sql。)


 flyway.table
Flyway使用的Schema元數據表名稱。(默認值:schema_version。)


 flyway.target
Flyway要遷移到的目標版本號。(默認最新版本。)


 flyway.url
待遷移的數據庫的JDBC URL。若是沒有設置,就使用配置的主數據源。


 flyway.user
待遷移數據庫的登陸用戶。


 flyway.validate-on-migrate
在運行遷移時是否要自動驗證。(默認值:true。)

 liquibase.change-log
變動日誌配置路徑。(默認值:classpath:/db/changelog/db.changelog-master. yaml。)


 liquibase.check-change-log-location
檢查變動日誌位置是否存在。(默認值:true。)


 liquibase.contexts
要使用的運行時上下文列表,用逗號分隔。


 liquibase.default-schema
默認的數據庫Schema。


 liquibase.drop-first
先刪除數據庫Schema。(默認值:false。)


 liquibase.enabled

開啓Liquibase支持。(默認值:true。)


 liquibase.password
待遷移數據庫的登陸密碼。


 liquibase.url
待遷移數據庫的JDBC URL。若是沒有設置,就使用配置的主數據源。


 liquibase.user
待遷移數據庫的登陸用戶。


 multipart.enabled
開啓分段(multi-part)上傳支持。(默認值:true。)


 multipart.file-size-threshold
大於該閾值的文件會寫到磁盤上。這裏的值可使用MB或KB後綴來代表是兆字節仍是千字節。(默認值:0。)


 multipart.location

上傳文件的中間存放位置。


 multipart.max-file-size
最大文件大小。這裏的值可使用MB或KB後綴來代表是兆字節仍是千字節。(默認值:
1MB。)


 multipart.max-request-size
最大請求大小。這裏的值可使用MB或KB後綴來代表是兆字節仍是千字節。(默認值:
10MB。)


 security.basic.authorize-mode
要運用的安全受權模式。


 security.basic.enabled
開啓基自己份驗證。(默認值:true。)

 security.basic.path
要保護的路徑,用逗號分隔。(默認值:[/**]。)


 security.basic.realm
HTTP基本領域(realm)用戶名。(默認值:Spring。)


 security.enable-csrf
開啓跨站請求僞造(cross-site request forgery)支持。(默認值:false。)


 security.filter-order
安全過濾器鏈順序。(默認值:0。)


 security.headers.cache
開啓緩存控制HTTP頭。(默認值:false。)


 security.headers.content-type
開啓X-Content-Type-Options頭。(默認值:false。)


 security.headers.frame
開啓X-Frame-Options頭。(默認值:false。)


 security.headers.hsts
HTTP Strict Transport Security(HSTS)模式(可設置爲none、domain、all)。


 security.headers.xss
開啓跨站腳本(cross-site scripting)保護。(默認值:false。)


 security.ignored
要從默認保護路徑中排除掉的路徑列表,用逗號分隔。


 security.oauth2.client.access-token-uri
用於獲取訪問令牌的URI。


 security.oauth2.client.access-token-validity-seconds
在令牌過時前多長時間驗證一次。


 security.oauth2.client.additional-information. [key]
設置額外的信息,令牌授予者會將其添加到令牌裏。


 security.oauth2.client.authentication-scheme
傳送持有人令牌(bearer token)的方法,包括form、header、none、query,可選其一。(默認值:header。)


 security.oauth2.client.authorities
要賦予經受權客戶端的權限。


 security.oauth2.client.authorized-grant-types
客戶端可用的授予類型。


 security.oauth2.client.auto-approve-scopes
客戶端自動經過的範圍。


 security.oauth2.client.client-authentication-scheme
在客戶端身份認證時用於傳輸身份認證信息的方法,包括form、header、none、query,可選其一。(默認值:header。)


 security.oauth2.client.client-id
OAuth2客戶端ID。


 security.oauth2.client.client-secret
OAuth2客戶端密鑰。默認隨機生成。


 security.oauth2.client.grant-type
得到資源訪問令牌的授予類型。


 security.oauth2.client.id
應用程序的客戶端ID。


 security.oauth2.client.pre-established-redirect-uri
與服務器預先創建好的重定向URI。若是設置了該屬性,用戶受權請求中的重定向URI會被忽略,由於服務器不須要它。


 security.oauth2.client.refresh-token-validity-seconds
刷新令牌在過時前的有效時間。


 security.oauth2.client.registered-redirect-uri
客戶端裏註冊的重定向URI,用逗號分隔。


 security.oauth2.client.resource-ids
與客戶端關聯的資源ID,用逗號分隔。


 security.oauth2.client.scope
客戶端分配的域。


 security.oauth2.client.token-name
令牌名稱。


 security.oauth2.client.use-current-uri
請求裏的當前URI(若是設置了的話)是否優先於預創建的重定向URI。(默認值:true。)


 security.oauth2.client.user-authorization-uri
用戶要重定向以便授訪問令牌的URI。


 security.oauth2.resource.id
資源的標識符。


 security.oauth2.resource.jwt.key-uri
JWT令牌的URI。若是沒有配置key-value,使用的又是公鑰,那麼能夠對這個屬性進行設置。


 security.oauth2.resource.jwt.key-value
JWT令牌的驗證密鑰,能夠是對稱密鑰,也能夠是PEM編碼的RSA公鑰。若是沒有配置這個屬性,那麼能夠用key-uri代替。


 security.oauth2.resource.prefer-token-info
使用令牌的信息,設置爲false則使用用戶信息。(默認值:true。)


 security.oauth2.resource.service-id
服務ID。(默認值:resource。)


 security.oauth2.resource.token-info-uri
令牌解碼端點URI。


 security.oauth2.resource.token-type
在使用userInfoUri時發送的令牌類型。


 security.oauth2.resource.user-info-uri

用戶端點的URI。


 security.oauth2.sso.filter-order
在沒有顯式提供WebSecurityConfigurerAdapter時應用的過濾器順序,在Web￾SecurityConfigurerAdapter裏也能夠指定順序。


 security.oauth2.sso.login-path

登陸頁的路徑——登陸頁是觸發重定向到OAuth2受權服務器的頁面。(默認值:/login。)


 security.require-ssl
對全部請求開啓安全通道。(默認值:false。)


 security.sessions
建立會話使用的策略。(可選值包括:always、never、if_required、stateless。)


 security.user.name
默認的用戶名。(默認值:user。)


 security.user.password
默認用戶的密碼。


 security.user.role
賦予默認用戶的角色。


 server.address
服務器綁定的網絡地址。


 server.compression.enabled
是否要開啓壓縮。(默認值:false。)


 server.compression.excluded-user-agents
用逗號分割的列表,標明哪些用戶代理不應開啓壓縮。(可選值包括:text/html、text/xml、text/plain、text/css)


 server.compression.mime-types
要開啓壓縮的MIME類型列表,用逗號分割。


 server.compression.min-response-size
要執行壓縮的最小響應大小(單位爲字節)。(默認值:2048。)

 server.context-parameters.[param name]
設置一個Servlet上下文參數。


 server.context-path
應用程序的上下文路徑。


 server.display-name
應用程序的顯示名稱。(默認值:application。)


 server.jsp-servlet.class-name
針對JSP使用的Servlet類名。(默認值:org.apache.jasper.servlet.JspServlet。)


 server.jsp-servlet.init-parameters.[param name]
設置JSP Servlet初始化參數。


 server.jsp-servlet.registered
JSP Servlet是否要註冊到內嵌的Servlet容器裏。(默認值:true。)


 server.port
服務器的HTTP端口。


 server.servlet-path
主分發器Servlet的路徑。(默認值:/。)


 server.session.cookie.comment
會話Cookie的註釋。


 server.session.cookie.domain
會話Cookie的域。


 server.session.cookie.http-only
會話Cookie的HttpOnly標記。


 server.session.cookie.max-age
會話Cookie的最大保存時間,單位爲秒。


 server.session.cookie.name
會話Cookie名稱。


 server.session.cookie.path
會話Cookie的路徑。


 server.session.cookie.secure
會話Cookie的Secure標記。


 server.session.persistent
是否在兩次重啓間持久化會話數據。(默認值:false。)


 server.session.timeout
會話超時時間,單位爲秒。


 server.session.tracking-modes
會話跟蹤模式(包括:cookie、url和ssl,可選其一或若干)。


176 附錄 C 配置屬性


 server.ssl.ciphers
支持的SSL加密算法。


 server.ssl.client-auth
客戶端受權是主動想(want)仍是被動須要(need)。要有一個TrustStore。


 server.ssl.enabled
是否開啓SSL。(默認值:true。)


 server.ssl.key-alias
在KeyStore裏標識密鑰的別名。


 server.ssl.key-password
在KeyStore裏用於訪問密鑰的密碼。


 server.ssl.key-store
持有SSL證書的KeyStore的路徑(一般指向一個.jks文件)。


 server.ssl.key-store-password
訪問KeyStore時使用的密鑰。


 server.ssl.key-store-provider
KeyStore的提供者。


 server.ssl.key-store-type

KeyStore的類型。


 server.ssl.protocol
要使用的SSL協議。(默認值:TLS。)


 server.ssl.trust-store
持有SSL證書的TrustStore。


 server.ssl.trust-store-password
用於訪問TrustStore的密碼。


 server.ssl.trust-store-provider
TrustStore的提供者。


 server.ssl.trust-store-type
TrustStore的類型。


 server.tomcat.access-log-enabled
是否開啓訪問日誌。(默認值:false。)


 server.tomcat.access-log-pattern
訪問日誌的格式。(默認值:common。)


 server.tomcat.accesslog.directory
建立日誌文件的目錄。能夠相對於Tomcat基礎目錄,也能夠是絕對路徑。(默認值:logs。)


 server.tomcat.accesslog.enabled
開啓訪問日誌。(默認值:false。)

 server.tomcat.accesslog.pattern
訪問日誌的格式。(默認值:common。)


 server.tomcat.accesslog.prefix
日誌文件名的前綴。(默認值:access_log。)


 server.tomcat.accesslog.suffix
日誌文件名的後綴。(默認值:.log。)


 server.tomcat.background-processor-delay
兩次調用backgroundProcess方法之間的延遲時間,單位爲秒。(默認值:30。)


 server.tomcat.basedir
Tomcat的基礎目錄。若是沒有指定則使用一個臨時目錄。


 server.tomcat.internal-proxies
匹配可信任代理服務器的正則表達式。默認值:「10\.\d{1,3}\.\d{1,3}\. \d{1,3}|192\.168\.\d
{1,3}\.\d{1,3}| 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}
\.\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}」。


 server.tomcat.max-http-header-size
HTTP消息頭的最大字節數。(默認值:0。)


 server.tomcat.max-threads
最大工做線程數。(默認值:0。)


 server.tomcat.port-header
用來覆蓋原始端口值的HTTP頭的名字。


 server.tomcat.protocol-header
持有流入協議的HTTP頭,一般的名字是X-Forwarded-Proto。僅當設置了remoteIp￾Header的時候,它會被配置爲RemoteIpValve。


 server.tomcat.protocol-header-https-value
協議頭的值,代表流入請求使用了SSL。(默認值:https。)


 server.tomcat.remote-ip-header
代表從哪一個HTTP頭裏能夠提取到遠端IP。僅當設置了remoteIpHeader的時候,它會被配置爲RemoteIpValve。


 server.tomcat.uri-encoding
用來解碼URI的字符編碼。


 server.undertow.access-log-dir
Undertow的訪問日誌目錄。(默認值:logs。)


 server.undertow.access-log-enabled
是否開啓訪問日誌。(默認值:false。)


 server.undertow.access-log-pattern
訪問日誌的格式。(默認值:common。)


 server.undertow.accesslog.dir
Undertow訪問日誌目錄。


 server.undertow.accesslog.enabled
開啓訪問日誌。(默認值:false。)


 server.undertow.accesslog.pattern
訪問日誌的格式。(默認值:common。)


 server.undertow.buffer-size
每一個緩衝的字節數。


 server.undertow.buffers-per-region
每一個區(region)的緩衝數。


 server.undertow.direct-buffers
在Java堆外分配緩衝。


 server.undertow.io-threads
要爲工做線程建立的I/O線程數。


 server.undertow.worker-threads
工做線程數。


 spring.activemq.broker-url
ActiveMQ代理的URL。默認自動生成。


 spring.activemq.in-memory
標明默認代理URL是否應該在內存裏。若是指定了一個顯式的代理則忽略該屬性。(默認值:true。)


 spring.activemq.password
代理的登陸密碼。


 spring.activemq.pooled
標明是否要建立一個PooledConnectionFactory來代替普通的ConnectionFactory。(默認值:false。)

 

 spring.activemq.user
代理的登陸用戶名。


 spring.aop.auto
添加@EnableAspectJAutoProxy。(默認值:true。)


 spring.aop.proxy-target-class
是否要建立基於子類(即Code Generation Library,CGLIB)的代理來代替基於Java接口的代理,前者爲true,後者爲false。(默認值:false。)


 spring.application.admin.enabled
開啓應用程序的管理功能。(默認值:false。)

 spring.application.admin.jmx-name
應用程序管理MBean的JMX名稱。(默認值:org.springframework.boot:type= Admin,name=SpringApplication。)


 spring.artemis.embedded.cluster-password
集羣密碼。默認在啓動時隨機生成。


 spring.artemis.embedded.data-directory
Journal文件目錄。若是關閉了持久化則不須要該屬性。


 spring.artemis.embedded.enabled
若是有Artemis服務器API則開啓嵌入模式。(默認值:true。)


 spring.artemis.embedded.persistent
開啓持久化存儲。(默認值:false。)


 spring.artemis.embedded.queues
要在啓動時建立的隊列列表,用逗號分隔。(默認值:[]。)


 spring.artemis.embedded.server-id
服務器ID。默認狀況下,使用一個自動遞增的計數器。(默認值:0。)


 spring.artemis.embedded.topics
在啓動時要建立的主題列表,用逗號分隔。(默認值:[]。)


 spring.artemis.host
Artemis代理主機。(默認值:localhost。)


 spring.artemis.mode
Artemis部署模式,默認自動檢測。能夠顯式地設置爲native或embedded。


 spring.artemis.port
Artemis代理端口。(默認值:61616。)


 spring.autoconfigure.exclude
要排除的自動配置類。


 spring.batch.initializer.enabled
若是有必要的話,在啓動時建立須要的批處理表。(默認值:true。)


 spring.batch.job.enabled
在啓動時執行上下文裏的全部Spring Batch任務。(默認值:true。)


 spring.batch.job.names
啓動時要執行的任務名列表,用逗號分隔。默認在上下文裏找到的全部任務都會執行。


 spring.batch.schema
指向初始化數據庫 Schema 用 的 SQL 文 件 的 路 徑 。( 默 認 值 : classpath:org/ springframework/batch/core/schema-@@platform@@.sql。)


 spring.batch.table-prefix
全部批處理元數據表的表前綴。

 spring.cache.cache-names
若是底層緩存管理器支持緩存名的話,能夠在這裏指定要建立的緩存名列表,用逗號分隔。一般這會禁用運行時建立其餘額外緩存的能力。


 spring.cache.ehcache.config
用來初始化EhCache的配置文件的位置。


 spring.cache.guava.spec
用來建立緩存的Spec。要得到有關Spec格式的詳細狀況,能夠查看CacheBuilderSpec。


 spring.cache.hazelcast.config
用來初始化Hazelcast的配置文件的位置。


 spring.cache.infinispan.config
用來初始化Infinispan的配置文件的位置。


 spring.cache.jcache.config
用來初始化緩存管理器的配置文件的位置。配置文件依賴於底層的緩存實現。


 spring.cache.jcache.provider
CachingProvider實現的全限定類名,用來獲取JSR-107兼容的緩存管理器,僅在Classpath裏有不僅一個JSR-107實現時才須要這個屬性。


 spring.cache.type
緩存類型,默認根據環境自動檢測。


 spring.dao.exceptiontranslation.enabled

打開PersistenceExceptionTranslationPostProcessor。(默認值:true。)


 spring.data.elasticsearch.cluster-name
Elasticsearch集羣名。(默認值:elasticsearch)


 spring.data.elasticsearch.cluster-nodes
集羣節點地址列表,用逗號分隔。若是沒有指定,就啓動一個客戶端節點。


 spring.data.elasticsearch.properties
用來配置客戶端的額外屬性。


 spring.data.elasticsearch.repositories.enabled
開啓Elasticsearch倉庫。(默認值:true。)


 spring.data.jpa.repositories.enabled
開啓JPA倉庫。(默認值:true。)


 spring.data.mongodb.authentication-database
身份認證數據庫名。


 spring.data.mongodb.database
數據庫名。


 spring.data.mongodb.field-naming-strategy
要使用的FieldNamingStrategy的全限定名。

 spring.data.mongodb.grid-fs-database
GridFS數據庫名稱。


 spring.data.mongodb.host
Mongo服務器主機地址。


 spring.data.mongodb.password
Mongo服務器的登陸密碼。


 spring.data.mongodb.port
Mongo服務器端口號。


 spring.data.mongodb.repositories.enabled
開啓Mongo倉庫。(默認值:true。)


 spring.data.mongodb.uri
Mongo數據庫URI。設置了該屬性後就主機和端口號會被忽略。(默認值:mongodb:// localhost/test。)


 spring.data.mongodb.username
Mongo服務器的登陸用戶名。


 spring.data.rest.base-path
用於發佈倉庫資源的基本路徑。


 spring.data.rest.default-page-size
分頁數據的默認頁大小。(默認值:20。)


 spring.data.rest.limit-param-name
用於標識一次返回多少記錄的URL查詢字符串參數名。(默認值:size。)


 spring.data.rest.max-page-size
最大分頁大小。(默認值:1000。)


 spring.data.rest.page-param-name
URL查詢字符串參數的名稱,用來標識返回哪一頁。(默認值:page。)


 spring.data.rest.return-body-on-create

在建立實體後是否返回一個響應體。(默認值:false。)


 spring.data.rest.return-body-on-update

在更新實體後是否返回一個響應體。(默認值:false。)


 spring.data.rest.sort-param-name
URL查詢字符串參數的名稱,用來標識結果排序的方向。(默認值:sort。)


 spring.data.solr.host
Solr的主機地址。若是設置了zk-host則忽略該屬性。(默認值:http://127.0.0.1: 8983/solr。)


 spring.data.solr.repositories.enabled
開啓Solr倉庫。(默認值:true。)

 spring.data.solr.zk-host
ZooKeeper主機地址,格式爲「主機:端口」。


 spring.datasource.abandon-when-percentage-full
一個百分比形式的閾值,超過該閾值則關閉並報告被棄用(超時)的鏈接。


 spring.datasource.allow-pool-suspension
是否容許池暫停(pool suspension)。在開啓池暫停後會有性能會受到必定影響,除非你真的須要這個功能(例如在冗餘的系統下),不然不要開啓它。該屬性只在使用Hikari數據庫鏈接池時有用。(默認:false。)


 spring.datasource.alternate-username-allowed
是否容許使用其餘用戶名。


 spring.datasource.auto-commit
更新操做是否自動提交。


 spring.datasource.catalog
默認的Catalog名稱。


 spring.datasource.commit-on-return
在鏈接歸還時,鏈接池是否要提交掛起的事務。


 spring.datasource.connection-init-sql
在全部新鏈接建立時都會執行的SQL語句,該語句會在鏈接加入鏈接池前執行。


 spring.datasource.connection-init-sqls
在物理鏈接第一次建立時執行的SQL語句列表。(用於DBCP鏈接池。)


 spring.datasource.connection-properties.[key]
設置建立鏈接時使用的屬性。(用於DBCP鏈接池。)


 spring.datasource.connection-test-query
用於測試鏈接有效性的SQL查詢。


 spring.datasource.connection-timeout
鏈接超時(單位爲毫秒)。


 spring.datasource.continue-on-error
初始化數據庫時發生錯誤不要終止。(默認值:false。)


 spring.datasource.data
指向數據(數據庫操縱語言,Data Manipulation Language,DML)腳本資源的引用。


 spring.datasource.data-source-class-name
用於獲取鏈接的數據源的全限定類名。


 spring.datasource.data-source-jndi
用於獲取鏈接的數據源的JNDI位置。


 spring.datasource.data-source-properties.[key]
設置建立數據源時使用的屬性。(用於Hikari鏈接池。)


 spring.datasource.db-properties
設置建立數據源時使用的屬性。(用於Tomcat鏈接池。)


 spring.datasource.default-auto-commit
鏈接上的操做是否自動提交。


 spring.datasource.default-catalog
鏈接的默認Catalog。


 spring.datasource.default-read-only
鏈接的默認只讀狀態。


 spring.datasource.default-transaction-isolation
鏈接的默認事務隔離級別。


 spring.datasource.driver-class-name
JDBC驅動的全限定類名。默認根據URL自動檢測。


 spring.datasource.fair-queue
是否以FIFO方式返回鏈接。


 spring.datasource.health-check-properties.[key]
設置要歸入健康檢查的屬性。(用於Hikari鏈接池。)


 spring.datasource.idle-timeout
鏈接池中的鏈接能保持閒置狀態的最長時間,單位爲毫秒。(默認值:10。)


 spring.datasource.ignore-exception-on-pre-load

初始化數據庫鏈接池時是否要忽略鏈接。


 spring.datasource.init-sql
在鏈接第一次建立時運行的自定義查詢。


 spring.datasource.initial-size
在鏈接池啓動時要創建的鏈接數。


 spring.datasource.initialization-fail-fast
在鏈接池建立時,若是達不到最小鏈接數是否要拋出異常。(默認值:true。)


 spring.datasource.initialize
使用data.sql初始化數據庫。(默認值:true。)


 spring.datasource.isolate-internal-queries
是否要隔離內部請求。(默認值:false。)

 


 spring.datasource.jdbc-interceptors
一個分號分隔的類名列表,這些類都擴展了JdbcInterceptor類。這些攔截器會插入java.sql.Connection對象的操做鏈裏。(用於Tomcat鏈接池。)


 spring.datasource.jdbc-url

用來建立鏈接的JDBC URL。


 spring.datasource.jmx-enabled
開啓JMX支持(若是底層鏈接池提供該功能的話)。(默認值:false。)


 spring. datasource.jndi-name
數據源的JNDI位置。設置了該屬性則忽略類、URL、用戶名和密碼屬性。


 spring.datasource.leak-detection-threshold
用來檢測Hikari鏈接池鏈接泄露的閾值,單位爲毫秒。


 spring.datasource.log-abandoned
是否針對棄用語句或鏈接的應用程序代碼記錄下跟蹤棧。用於DBCP鏈接池。(默認值:false。)


 spring.datasource.log-validation-errors
在使用Tomcat鏈接池時是否要記錄驗證錯誤。


 spring.datasource.login-timeout
鏈接數據庫的超時時間(單位爲秒)。


 spring.datasource.max-active
鏈接池中的最大活躍鏈接數。


 spring.datasource.max-age
鏈接池中鏈接的最長壽命。


 spring.datasource.max-idle
鏈接池中的最大空閒鏈接數。


 spring.datasource.max-lifetime
鏈接池中鏈接的最長壽命(單位爲毫秒)。


 spring.datasource.max-open-prepared-statements
開啓狀態的PreparedStatement的數量上限。


 spring.datasource.max-wait
鏈接池在等待返回鏈接時,最長等待多少毫秒再拋出異常。


 spring.datasource.maximum-pool-size
鏈接池能達到的最大規模,包含空閒鏈接的數量和使用中的鏈接數量。


 spring.datasource.min-evictable-idle-time-millis
一個空閒鏈接被空閒鏈接釋放器(若是存在的話)優雅地釋放前,最短會在鏈接池裏停留多少時間。

 spring.datasource.min-idle
鏈接池裏始終應該保持的最小鏈接數。(用於DBCP和Tomcat鏈接池。)


 spring.datasource.minimum-idle:
HikariCP試圖在鏈接池裏維持的最小空閒鏈接數。


 spring.datasource.name
數據源的名稱。


 spring.datasource.num-tests-per-eviction-run
空閒對象釋放器線程(若是存在的話)每次運行時要檢查的對象數。


 spring.datasource.password
數據庫的登陸密碼。


 spring.datasource.platform
在Schema資源(schema-${platform}.sql)裏要使用的平臺。(默認值:all。)


 spring.datasource.pool-name
鏈接池名稱。


 spring.datasource.pool-prepared-statements
是否要將Statement放在池裏。


 spring.datasource.propagate-interrupt-state
對於等待鏈接的中斷線程,是否要傳播中斷狀態。


 spring.datasource.read-only
在使用Hikari鏈接池時將數據源設置爲只讀。


 spring.datasource.register-mbeans
Hikari鏈接池是否要註冊JMX MBean。


 spring.datasource.remove-abandoned
被棄用的鏈接在到達棄用超時後是否應該被移除。


 spring.datasource.remove-abandoned-timeout
鏈接在多少秒後應該考慮棄用。


 spring.datasource.rollback-on-return
在鏈接歸還鏈接池時,是否要回滾掛起的事務。


 spring.datasource.schema
Schema(數據定義語言,Data Definition Language,DDL)腳本資源的引用。


 spring.datasource.separator
SQL初始化腳本里的語句分割符。(默認值:;。)


 spring.datasource.sql-script-encoding

SQL腳本的編碼。


 spring.datasource.suspect-timeout
在記錄一個疑似棄用鏈接前要等待多少秒。


 spring.datasource.test-on-borrow
從鏈接池中借用鏈接時是否要進行測試。


 spring.datasource.test-on-connect
在創建鏈接時是否要進行測試。


 spring.datasource.test-on-return
在將鏈接歸還到鏈接池時是否要進行測試。


 spring.datasource.test-while-idle
在鏈接空閒時是否要進行測試。


 spring.datasource.time-between-eviction-runs-millis
在兩次空閒鏈接驗證、棄用鏈接清理和空閒池大小調整之間睡眠的毫秒數。


 spring.datasource.transaction-isolation
在使用Hikari鏈接池時設置默認事務隔離級別。


 spring.datasource.url
數據庫的JDBC URL。


 spring.datasource.use-disposable-connection-facade
鏈接是否要用一個門面(facade)封裝起來,在調用了Connection.close()後就不能


再使用這個鏈接了。
 spring.datasource.use-equals
在比較方法名時是否使用String.equals()來代替==。


 spring.datasource.use-lock
在操做鏈接對象時是否要加鎖。


 spring.datasource.username
數據庫的登陸用戶名。


 spring.datasource.validation-interval
執行鏈接驗證的間隔時間,單位爲毫秒。


 spring.datasource.validation-query
在鏈接池裏的鏈接返回給調用者或鏈接池時,要執行的驗證SQL查詢。


 spring.datasource.validation-query-timeout
在鏈接驗證查詢執行失敗前等待的超時時間,單位爲秒。


 spring.datasource.validation-timeout
在鏈接驗證失敗前等待的超時時間,單位爲秒。(用於Hikari鏈接池。)


 spring.datasource.validator-class-name
可選驗證器類的全限定類名,用於執行測試查詢。


 spring.datasource.xa.data-source-class-name
XA數據源的全限定類名。


 spring.datasource.xa.properties
要傳遞給XA數據源的屬性。


 spring.freemarker.allow-request-override
HttpServletRequest的屬性是否容許覆蓋(隱藏)控制器生成的同名模型屬性。


 spring.freemarker.allow-session-override
HttpSession的屬性是否容許覆蓋(隱藏)控制器生成的同名模型屬性。


 spring.freemarker.cache
開啓模板緩存。

 spring.freemarker.charset
模板編碼。


 spring.freemarker.check-template-location
檢查模板位置是否存在。


 spring.freemarker.content-type
Content-Type的值。


 spring.freemarker.enabled
開啓FreeMarker的MVC視圖解析。


 spring.freemarker.expose-request-attributes
在模型合併到模板前,是否要把全部的請求屬性添加到模型裏。


 spring.freemarker.expose-session-attributes
在模型合併到模板前,是否要把全部的HttpSession屬性添加到模型裏。


 spring.freemarker.expose-spring-macro-helpers
是否發佈供Spring宏程序庫使用的RequestContext,並將命其名爲springMacro￾RequestContext。


 spring.freemarker.prefer-file-system-access
加載模板時優先經過文件系統訪問。文件系統訪問可以實時檢測到模板變動。(默認值:true。)


 spring.freemarker.prefix
在構建URL時添加到視圖名稱前的前綴。


 spring.freemarker.request-context-attribute
在全部視圖裏使用的RequestContext屬性的名稱。


 spring.freemarker.settings
要傳遞給FreeMarker配置的各類鍵。


 spring.freemarker.suffix
在構建URL時添加到視圖名稱後的後綴。


 spring.freemarker.template-loader-path
模板路徑列表,用逗號分隔。(默認值:["classpath:/templates/"]。)


 spring.freemarker.view-names
可解析的視圖名稱的白名單。


 spring.groovy.template.allow-request-override
HttpServletRequest的屬性是否容許覆蓋(隱藏)控制器生成的同名模型屬性。


 spring.groovy.template.allow-session-override
HttpSession的屬性是否容許覆蓋(隱藏)控制器生成的同名模型屬性。


 spring.groovy.template.cache
開啓模板緩存。

 spring.groovy.template.charset
模板編碼。


 spring.groovy.template.check-template-location
檢查模板位置是否存在。


 spring.groovy.template.configuration.auto-escape
模型變量在模板裏呈現時是否要作轉義。(默認值: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
模板基類。
 spring.groovy.template.configuration.cache-templates
模板是否應該緩存。(默認值:true。)


 spring.groovy.template.configuration.declaration-encoding

用來寫聲明頭的編碼。


 spring.groovy.template.configuration.expand-empty-elements
沒有正文的元素該用短形式(例如,<br/>)仍是擴展形式(例如,<br></br>)來書
寫。(默認值:false。)


 spring.groovy.template.configuration.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模板的MVC視圖解析。


 spring.groovy.template.expose-request-attributes
在模型合併到模板前,是否要把全部的請求屬性添加到模型裏。

 

 spring.groovy.template.expose-session-attributes
在模型合併到模板前,是否要把全部的HttpSession屬性添加到模型裏。


 spring.groovy.template.expose-spring-macro-helpers
是否發佈供Spring宏程序庫使用的RequestContext,並將其命名爲springMacro￾RequestContext。


 spring.groovy.template.prefix
在構建URL時,添加到視圖名稱前的前綴。


 spring.groovy.template.request-context-attribute
全部視圖裏使用的RequestContext屬性的名稱。


 spring.groovy.template.resource-loader-path
模板路徑(默認值:classpath:/ templates/。)


 spring.groovy.template.suffix
在構建URL時,添加到視圖名稱後的後綴。


 spring.groovy.template.view-names
可解析的視圖名稱白名單。


 spring.h2.console.enabled
開啓控制檯。(默認值:false。)


 spring.h2.console.path
能夠找到控制檯的路徑。(默認值:/h2-console。)


 spring.hateoas.apply-to-primary-object-mapper
指定主ObjectMapper是否要應用HATEOAS支持。(默認值:true。)


 spring.hornetq.embedded.cluster-password
集羣密碼。默認在啓動時隨機生成。


 spring.hornetq.embedded.data-directory
日誌文件目錄。若是關閉了持久化功能則不須要該屬性。


 spring.hornetq.embedded.enabled
若是有HornetQ服務器API,則開啓嵌入模式。(默認值:true。)


 spring.hornetq.embedded.persistent
開啓持久化存儲。(默認值:false。)


 spring.hornetq.embedded.queues
啓動時要建立的隊列列表,用逗號分隔。(默認值:[]。)


 spring.hornetq.embedded.server-id
服務器ID。默認使用自增加計數器。(默認值:0。)


 spring.hornetq.embedded.topics
啓動時要建立的主題列表,用逗號分隔。(默認值:[]。)


 spring.hornetq.host
HornetQ的主機。(默認值:localhost。)

 spring.hornetq.mode
HornetQ的部署模式,默認爲自動檢測。能夠顯式地設置爲native或embedded。


 spring.hornetq.port
HornetQ的端口。(默認值:5445。)


 spring.http.converters.preferred-json-mapper
HTTP消息轉換時優先使用JSON映射器。


 spring.http.encoding.charset
HTTP請求和響應的字符集。若是沒有顯式地指定Content-Type頭,則將該屬性值做爲這個頭的值。(默認值:UTF-8。)


 spring.http.encoding.enabled
開啓HTTP編碼支持。(默認值:true。)


 spring.http.encoding.force
強制將HTTP請求和響應編碼爲所配置的字符集。(默認值:true。)


 spring.jackson.date-format
日期格式字符串(yyyy-MM-dd HH:mm:ss)或日期格式類的全限定類名。


 spring.jackson.deserialization
影響Java對象反序列化的Jackson on/off特性。


 spring.jackson.generator
用於生成器的Jackson on/off特性。


 spring.jackson.joda-date-time-format
Joda日期時間格式字符串(yyyy-MM-dd HH:mm:ss)。若是沒有配置,而date-format又配置了一個格式字符串的話,會將它做爲降級配置。


 spring.jackson.locale
用於格式化的地域值。


 spring.jackson.mapper
Jackson的通用on/off特性。


 spring.jackson.parser
用於解析器的Jackson on/off特性。


 spring.jackson.property-naming-strategy
Jackson的PropertyNamingStrategy中的一個常量(CAMEL_CASE_TO_LOWER_CASE_ WITH_UNDERSCORES)。也能夠設置PropertyNamingStrategy的子類的全限定類名。


 spring.jackson.serialization
影響Java對象序列化的Jackson on/off特性。


 spring.jackson.serialization-inclusion
控制序列化時要包含哪些屬性。可選擇Jackson的JsonInclude.Include枚舉裏的某個值。

 spring.jackson.time-zone
格式化日期時使用的時區。能夠配置各類可識別的時區標識符,好比America/Los_ Angeles或者GMT+10。


 spring.jersey.filter.order
Jersey過濾器鏈的順序。(默認值:0。)


 spring.jersey.init
經過Servlet或過濾器傳遞給Jersey的初始化參數。


 spring.jersey.type
Jersey集成類型。能夠是servlet或者filter。


 spring.jms.jndi-name
鏈接工廠的JNDI名字。設置了該屬性,則優先於其餘自動配置的鏈接工廠。


 spring.jms.listener.acknowledge-mode
容器的應答模式(acknowledgment mode)。默認狀況下,監聽器使用自動應答。


 spring.jms.listener.auto-startup
啓動時自動啓動容器。(默認值:true。)


 spring.jms.listener.concurrency
併發消費者的數量下限。


 spring.jms.listener.max-concurrency
併發消費者的數量上限。


 spring.jms.pub-sub-domain
若是是主題而非隊列,指明默認的目的地類型是否支持Pub/Sub。(默認值:false。)


 spring.jmx.default-domain
JMX域名。


 spring.jmx.enabled
將管理Bean發佈到JMX域裏。(默認值:true。)


 spring.jmx.server
MBeanServer的Bean名稱。(默認值:mbeanServer。)


 spring.jooq.sql-dialect
在與配置的數據源通訊時,JOOQ使用的SQLDialect,好比POSTGRES。


 spring.jpa.database
要操做的目標數據庫,默認自動檢測。也能夠經過databasePlatform屬性進行設置。


 spring.jpa.database-platform
要操做的目標數據庫,默認自動檢測。也能夠經過Database枚舉來設置。


 spring.jpa.generate-ddl
啓動時要初始化Schema。(默認值:false。)


 spring.jpa.hibernate.ddl-auto

DDL模式(none、validate、update、create和create-drop)。這是hibernate.
hbm2ddl.auto屬性的一個快捷方式。在使用嵌入式數據庫時,默認爲create-drop;其餘狀況下默認爲none。


 spring.jpa.hibernate.naming-strategy
Hibernate命名策略的全限定類名。


 spring.jpa.open-in-view
註冊OpenEntityManagerInViewInterceptor,在請求的整個處理過程當中,將一個JPA EntityManager綁定到線程上。(默認值:true。)


 spring.jpa.properties
JPA提供方要設置的額外原生屬性。


 spring.jpa.show-sql
在使用Bitronix Transaction Manager時打開SQL語句日誌。(默認值:false。)


 spring.jta.allow-multiple-lrc
在使用Bitronix Transaction Manager時,事務管理器是否應該容許一個事務涉及多個LRC資源。(默認值:false。)


 spring.jta.asynchronous2-pc
在使用Bitronix Transaction Manager時,是否異步執行兩階段提交。(默認值:false。)


 spring.jta.background-recovery-interval
在使用Bitronix Transaction Manager時,多久運行一次恢復過程,單位爲分鐘。(默認值:1。)

 

 spring.jta.background-recovery-interval-seconds
在使用Bitronix Transaction Manager時,多久運行一次恢復過程,單位爲秒。(默認值:60。)


 spring.jta.current-node-only-recovery
在使用Bitronix Transaction Manager時,恢復是否要濾除不包含本JVM惟一ID的XID。(默認值:true。)


 spring.jta.debug-zero-resource-transaction
在使用Bitronix Transaction Manager時,對於沒有涉及任何資源的事務,是否要跟蹤並記錄它們的建立和提交調用棧。(默認值:false。)

 

 spring.jta.default-transaction-timeout
在使用Bitronix Transaction Manager時,默認的事務超時時間,單位爲秒。(默認值:60。)


 spring.jta.disable-jmx
在使用Bitronix Transaction Manager時,是否要禁止註冊JMX MBean。(默認值:false。)


 spring.jta.enabled
開啓JTA支持。(默認值:true。)


 spring.jta.exception-analyzer
在使用Bitronix Transaction Manager時用到的異常分析器。設置爲null時使用默認異常分析器,也能夠設置自定義異常分析器的全限定類名。


 spring.jta.filter-log-status
在使用Bitronix Transaction Manager時,是否只記錄必要的日誌。開啓該參數時能減小分段(fragment)空間用量,但調試更復雜了。(默認值:false。)


 spring.jta.force-batching-enabled
在使用Bitronix Transaction Manager時,是否批量輸出至磁盤。禁用批處理會嚴重下降事務管理器的吞吐量。(默認值:true。)


 spring.jta.forced-write-enabled
在使用Bitronix Transaction Manager時,日誌是否強制寫到磁盤上。在生產環境裏不要設置爲false,由於不強制寫到磁盤上沒法保證完整性。(默認值:true。)


 spring.jta.graceful-shutdown-interval
在使用Bitronix Transaction Manager時,要關閉的話,事務管理器在放棄事務前最多等它多少秒。(默認值:60。)


 spring.jta.jndi-transaction-synchronization-registry-name
在使用Bitronix Transaction Manager時,事務同步註冊表應該綁定到哪一個JNDI下。(默認值:java:comp/TransactionSynchronizationRegistry。)


 spring.jta.jndi-user-transaction-name
在使用Bitronix Transaction Manager時,用戶事務應該綁定到哪一個JNDI下。(默認值:java:comp/UserTransaction。)


 spring.jta.journal
在使用Bitronix Transaction Manager時,要用的日誌名。能夠是disk、null或者全限定類名。(默認值:disk。)


 spring.jta.log-dir
事務日誌目錄。


 spring.jta.log-part1-filename
日誌分段文件1的名稱。(默認值:btm1.tlog。)


 spring.jta.log-part2-filename
日誌分段文件2的名稱。(默認值:btm2.tlog。)


 spring.jta.max-log-size-in-mb
在使用Bitronix Transaction Manager時,日誌分段文件的最大兆數。日誌越大,事務就被
容許在未終結狀態停留越長時間。可是,若是文件大小限制得過小,事務管理器在分段
滿了的時候就會暫停更長時間。(默認值:2。)


 spring.jta.resource-configuration-filename
Bitronix Transaction Manager的配置文件名。


 spring.jta.server-id
惟一標識Bitronix Transaction Manager實例的ID。


 spring.jta.skip-corrupted-logs
是否跳過損壞的日誌文件。(默認值:false。)


 spring.jta.transaction-manager-id
事務管理器的惟一標識符。


 spring.jta.warn-about-zero-resource-transaction
在使用Bitronix Transaction Manager時,是否要對執行時沒有涉及任何資源的事務做出告
警。(默認值:true。)


 spring.mail.default-encoding
默認的MimeMessage編碼。(默認值:UTF-8。)


 spring.mail.host
SMTP服務器主機地址。


 spring.mail.jndi-name
會話的JNDI名稱。設置以後,該屬性的優先級要高於其餘郵件設置。


 spring.mail.password
SMTP服務器的登陸密碼。


 spring.mail.port
SMTP服務器的端口號。


 spring.mail.properties
附加的JavaMail會話屬性。


 spring.mail.protocol
SMTP服務器用到的協議。(默認值:smtp。)


 spring.mail.test-connection
在啓動時測試郵件服務器是否可用。(默認值:false。)


 spring.mail.username
SMTP服務器的登陸用戶名。


 spring.messages.basename
逗號分隔的基本名稱列表,都遵循ResourceBundle的慣例。本質上這就是一個全限定
的Classpath位置,若是不包含包限定符(好比org.mypackage),就會從Classpath的根部
開始解析。(默認值:messages。)


 spring.messages.cache-seconds
加載的資源包文件的緩存失效時間,單位爲秒。在設置爲-1時,包會永遠緩存。(默認值:
-1。)


 spring.messages.encoding
消息包的編碼。(默認值:UTF-8。)


 spring.mobile.devicedelegatingviewresolver.enable-fallback
開啓降級解析支持。(默認值:false。)

 spring.mobile.devicedelegatingviewresolver.enabled
開啓設備視圖解析器。(默認值:false。)


 spring.mobile.devicedelegatingviewresolver.mobile-prefix
添加到移動設備視圖名前的前綴。(默認值:mobile/。)


 spring.mobile.devicedelegatingviewresolver.mobile-suffix
添加到移動設備視圖名後的後綴。


 spring.mobile.devicedelegatingviewresolver.normal-prefix
添加到普通設備視圖名前的前綴。


 spring.mobile.devicedelegatingviewresolver.normal-suffix
添加到普通設備視圖名後的後綴。


 spring.mobile.devicedelegatingviewresolver.tablet-prefix
添加到平板設備視圖名前的前綴。(默認值:tablet/。)


 spring.mobile.devicedelegatingviewresolver.tablet-suffix
添加到平板設備視圖名後的後綴。


 spring.mobile.sitepreference.enabled
開啓SitePreferenceHandler。(默認值:true。)


 spring.mongodb.embedded.features
要開啓的特性列表,用逗號分隔。


 spring.mongodb.embedded.version
要使用的Mongo版本。(默認值:2.6.10。)


 spring.mustache.cache
開啓模板緩存。


 spring.mustache.charset
模板編碼。


 spring.mustache.check-template-location
檢查模板位置是否存在。


 spring.mustache.content-type
Content-Type的值。


 spring.mustache.enabled
開啓Mustache的MVC視圖解析。


 spring.mustache.prefix
添加到模板名前的前綴。(默認值:classpath:/ templates/。)


 spring.mustache.suffix
添加到模板名後的後綴。(默認值:.html。)


 spring.mustache.view-names
可解析的視圖名稱的白名單。

spring.mvc.async.request-timeout
異步請求處理超時前的等待時間(單位爲毫秒)。若是沒有設置該屬性,則使用底層實現
的默認超時時間,好比,Tomcat上使用Servlet 3時超時時間爲10秒。


spring.mvc.date-format
要使用的日期格式(好比dd/MM/yyyy)。


spring.mvc.favicon.enabled
開啓favicon.ico的解析。(默認值:true。)


spring.mvc.ignore-default-model-on-redirect
在重定向的場景下,是否要忽略「默認」模型對象的內容。(默認值:true。)


spring.mvc.locale
要使用的地域配置。


spring.mvc.message-codes-resolver-format
消息代碼格式(PREFIX_ERROR_CODE、POSTFIX_ERROR_CODE)。


spring.mvc.view.prefix
Spring MVC視圖前綴。


spring.mvc.view.suffix
Spring MVC視圖後綴。


spring.rabbitmq.addresses
客戶端應該鏈接的地址列表,用逗號分隔。


spring.rabbitmq.dynamic
建立一個AmqpAdmin Bean。(默認值:true。)


spring.rabbitmq.host
RabbitMQ主機地址。(默認值:localhost。)


spring.rabbitmq.listener.acknowledge-mode
容器的應答模式。


spring.rabbitmq.listener.auto-startup
啓動時自動開啓容器。(默認值:true。)


spring.rabbitmq.listener.concurrency
消費者的數量下限。


spring.rabbitmq.listener.max-concurrency
消費者的數量上限。


spring.rabbitmq.listener.prefetch
單個請求裏要處理的消息數。該數值不該小於事務數(若是用到的話)。


spring.rabbitmq.listener.transaction-size
一個事務裏要處理的消息數。爲了保證效果,應該不大於預先獲取的數量。


spring.rabbitmq.password

進行身份驗證的密碼。


 spring.rabbitmq.port
RabbitMQ端口。(默認值:5672。)


 spring.rabbitmq.requested-heartbeat
請求心跳超時,單位爲秒;0表示不啓用心跳。


 spring.rabbitmq.ssl.enabled
開啓SSL支持。(默認值:false。)


 spring.rabbitmq.ssl.key-store
持有SSL證書的KeyStore路徑。


 spring.rabbitmq.ssl.key-store-password
訪問KeyStore的密碼。


 spring.rabbitmq.ssl.trust-store
持有SSL證書的TrustStore。


 spring.rabbitmq.ssl.trust-store-password
訪問TrustStore的密碼。


 spring.rabbitmq.username
進行身份驗證的用戶名。

 spring.rabbitmq.virtual-host
在鏈接RabbitMQ時的虛擬主機。


 spring.redis.database
鏈接工廠使用的數據庫索引。(默認值:0。)

 

 spring.redis.host
Redis服務器主機地址。(默認值:localhost。)


 spring.redis.password
Redis服務器的登陸密碼。

 

 spring.redis.pool.max-active
鏈接池在指定時間裏能分配的最大鏈接數。負數表示無限制。(默認值:8。)


 spring.redis.pool.max-idle
鏈接池裏的最大空閒鏈接數。負數表示空閒鏈接數能夠是無限大。(默認值:8。)


 spring.redis.pool.max-wait
當鏈接池被耗盡時,分配鏈接的請求應該在拋出異常前被阻塞多長時間(單位爲秒)。負
數表示一直阻塞。(默認值:-1。)


 spring.redis.pool.min-idle
鏈接池裏要維持的最小空閒鏈接數。該屬性只有在設置爲正數時纔有效。(默認值:0。)


 spring.redis.port
Redis服務器端口。(默認值:6379。)


spring.redis.sentinel.master
Redis服務器的名字。


spring.redis.sentinel.nodes
形如「主機:端口」配對的列表,用逗號分隔。


spring.redis.timeout
鏈接超時時間,單位爲秒。(默認值:0。)


spring.resources.add-mappings
開啓默認資源處理。(默認值:true。)


spring.resources.cache-period
資源處理器對資源的緩存週期,單位爲秒。


spring.resources.chain.cache
對資源鏈開啓緩存。(默認值:true。)


spring.resources.chain.enabled
開啓Spring資源處理鏈。(默認關閉的,除非至少開啓了一個策略。)


spring.resources.chain.html-application-cache
開啓HTML5應用程序緩存證實重寫。(默認值: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:/(Servlet上下文的根目錄)。


spring.sendgrid.password
SendGrid密碼。


spring.sendgrid.proxy.host
SendGrid代理主機地址。


spring.sendgrid.proxy.port
SendGrid代理端口。


spring.sendgrid.username

SendGrid用戶名。


 spring.social.auto-connection-views
針對所支持的提供方開啓鏈接狀態視圖。(默認值:false。)


 spring.social.facebook.app-id
應用程序ID。


 spring.social.facebook.app-secret
應用程序的密鑰。


 spring.social.linkedin.app-id
應用程序ID。


 spring.social.linkedin.app-secret

應用程序的密鑰。


 spring.social.twitter.app-id
應用程序ID。


 spring.social.twitter.app-secret
應用程序的密鑰。


 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
要運用於模板之上的模板模式。另見StandardTemplate- ModeHandlers。(默認值:HTML5。)


 spring.thymeleaf.prefix
在構建URL時添加到視圖名稱前的前綴。(默認值:classpath:/templates/。)


 spring.thymeleaf.suffix
在構建URL時添加到視圖名稱後的後綴。(默認值:.html。)


 spring.thymeleaf.template-resolver-order
Thymeleaf模板解析器在解析器鏈中的順序。默認狀況下,它排在第一位。順序從1開始只有在定義了額外的TemplateResolver Bean時才須要設置這個屬性


spring.thymeleaf.view-names
可解析的視圖名稱列表,用逗號分隔。


spring.velocity.allow-request-override
HttpServletRequest的屬性是否容許覆蓋(隱藏)控制器生成的同名模型屬性。


spring.velocity.allow-session-override
HttpSession的屬性是否容許覆蓋(隱藏)控制器生成的同名模型屬性。


spring.velocity.cache

開啓模板緩存。


spring.velocity.charset
模板編碼。


spring.velocity.check-template-location
檢查模板位置是否存在。


spring.velocity.content-type
Content-Type的值。


spring.velocity.date-tool-attribute
DateTool輔助對象在視圖的Velocity上下文裏呈現的名字。


spring.velocity.enabled
開啓Velocity的MVC視圖解析。


spring.velocity.expose-request-attributes
在模型合併到模板前,是否要把全部的請求屬性添加到模型裏。


spring.velocity.expose-session-attributes
在模型合併到模板前,是否要把全部的HttpSession屬性添加到模型裏。


spring.velocity.expose-spring-macro-helpers
是否發佈供Spring宏程序庫使用的RequestContext,並將其名命爲springMacroRequestContext。


spring.velocity.number-tool-attribute
NumberTool輔助對象在視圖的Velocity上下文裏呈現的名字。


spring.velocity.prefer-file-system-access
加載模板時優先經過文件系統訪問。文件系統訪問可以實時檢測到模板變動。(默認值:
true。)
spring.velocity.prefix
在構建URL時添加到視圖名稱前的前綴。


spring.velocity.properties
額外的Velocity屬性。


spring.velocity.request-context-attribute
全部視圖裏使用的Request- Context屬性的名稱。


 spring.velocity.resource-loader-path
模板路徑。(默認值:classpath:/ templates/。)


 spring.velocity.suffix
在構建URL時添加到視圖名稱後的後綴。


 spring.velocity.toolbox-config-location
Velocity Toolbox的配置位置,好比/WEB-INF/toolbox.xml。自動加載Velocity Tools工具定
義文件,將所定義的所有工具發佈到指定的做用域內。
 spring.velocity.view-names
可解析的視圖名稱白名單。


 spring.view.prefix
Spring MVC視圖前綴。

 spring.view.suffixSpring MVC視圖後綴。

相關文章
相關標籤/搜索