1. 程式人生 > >springboot配置檔案priperties大全

springboot配置檔案priperties大全

flyway.baseline-description
執行基線時標記已有Schema的描述。
flyway.baseline-on-migrate
在沒有元資料表的情況下,針對非空Schema執行遷移時是否自動呼叫基線。(預設值:
false 。)
flyway.baseline-version
執行基線時用來標記已有Schema的版本。(預設值: 1 。)
flyway.check-location
檢查遷移指令碼所在的位置是否存在。(預設值: false 。)
flyway.clean-on-validation-error
在驗證錯誤時,是否自動執行清理。(預設值: false 。)
flyway.enabled
開啟Flyway。(預設值: true 。)
flyway.encoding
設定SQL遷移檔案的編碼。(預設值: UTF-8 。)
flyway.ignore-failed-future-migration
在讀元資料表時,是否忽略失敗的後續遷移。(預設值: false 。)
flyway.init-sqls
獲取連線後立即執行初始化的SQL語句。
flyway.locations
遷移指令碼的位置。(預設值: db/migration 。)
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 ,可選其一或若干)。
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/
[email protected]
@[email protected]@.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 沒有正文的元素該用短形式(例如, )還是擴充套件形式(例如, )來書 寫。(預設值: 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 ,並將其名命為 springMacro- RequestContext 。 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.suffix Spring MVC檢視字尾。