spring boot application.properties 配置參數詳情

multiparthtml

multipart.enabled 開啓上傳支持(默認:true)java

multipart.file-size-threshold: 大於該值的文件會被寫到磁盤上node

multipart.location 上傳文件存放位置redis

multipart.max-file-size最大文件大小spring

multipart.max-request-size 最大請求大小sql

servermongodb

server.address 服務器地址數據庫

server.port 服務器端口apache

server.context-parameters.[param name] 設置 servlet 上下文參數json

server.context-path 應用上下文路徑

Jsp-servelt

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

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

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

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

Session

server.session.cookie.domain 回話 Cookie 的域

server.session.cookie.comment Cookie 註釋

server.session.cookie.max-age Cookie 最大保存時間(單位 s)

server.session.cookie.name Cookie 名稱

server.session.cookie.timeout 超時時間

tomcat

server.tomcat.accesslog.directory 建立日誌文件的目錄

server.tomcat.accesslog.enabled 是否開啓訪問日誌(默認:false)

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

server.tomcat.accesslog.prefix日誌名前綴(默認:access_log)

server.tomcat.accesslog.suffix 日誌名後綴(默認:.log)

server.tomcat.max-http-header-sizeHttp 消息頭最大字節數(默認:0)

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

Cache

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

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

spring.cache.guava.spec 用來建立緩存 Spec

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

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

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

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

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

Data

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 MongoDB 服務器地址

spring.data.mongodb.username MongoDB 帳號

spring.data.mongodb.passwordMongoDB 密碼

spring.data.mongodb.port 端口號

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

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

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-sieze: 最大分頁大小(默認: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 查詢字符串參數的名稱,用來表示結果排序的方向(默認:name)

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 zk 主機地址,格式爲 「主機 - 端口」

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

DataSource

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

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

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

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

spring.datasource.jdbc-url 用來建立鏈接的 JDBC URL。

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

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

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

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

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.alternate-username-allowed 是否容許其它用戶名

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

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

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.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.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.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.num-tests-per-eviction-run 空閒對象釋放器線程(若是存在的話)每次運行時要檢查的對象數。

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

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.use-disposable-connection-facade 鏈接是否要用一個門面(facade)封裝起來,在調用了 Connection.close() 後就不能 再使用這個鏈接了。

spring.datasource.use-equals 在比較方法名時是否使用 String.equals() 來代替 == 。

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

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 數據源的屬性。

FreeMarker

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 可解析的視圖名稱的白名單。

Groovy

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 可解析的視圖名稱白名單。

H2

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

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

Hornetq

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 。)

Http

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 。)

Jackson

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_LOWERCASE 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 。

Jersey

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

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

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

Jms

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 。)

Jmx

spring.jmx.default-domain JMX 域名。

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

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

Jpa

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.propertiesJPA 提供方要設置的額外原生屬性。

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

Jta

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 。)

Mail

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 服務器的登陸用戶名。

Messages

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

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

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

Mobile

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 。)

Mongodb

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

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

Mustache

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 可解析的視圖名稱的白名單。

Mvc

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 視圖後綴。

Mybatis

mybatis.mapper-locations mybatis 映射文件位置。 
mybatis.type-aliases-package 別名包位置。

Rabbitmq

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 時的虛擬主機。

Redis

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

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

spring.redis.passwordRedis 服務器的登陸密碼。

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 。)

Resources

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 上下文的根目錄)。

SendGrid

spring.sendgrid.password SendGrid 密碼。

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

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

spring.sendgrid.username SendGrid 用戶名。

Social

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 應用程序的密鑰。

Thymeleaf

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 可解析的視圖名稱列表,用逗號分隔。

Velocity

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可解析的視圖名稱白名單。

View

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

spring.view.suffixSpring MVC 視圖後綴。

其它

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

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

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

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

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

相關文章
相關標籤/搜索