spring.dao.exceptiontranslation.enabled
是否開啓PersistenceExceptionTranslationPostProcessor,默認爲truejava
spring.datasource.abandon-when-percentage-full
設定超時被廢棄的鏈接佔到多少比例時要被關閉或上報node
spring.datasource.allow-pool-suspension
使用Hikari pool時,是否容許鏈接池暫停,默認爲: falsespring
spring.datasource.alternate-username-allowed
是否容許替代的用戶名.sql
spring.datasource.auto-commit
指定updates是否自動提交.數據庫
spring.datasource.catalog
指定默認的catalog.異步
spring.datasource.commit-on-return
設置當鏈接被歸還時,是否要提交全部還未完成的事務async
spring.datasource.connection-init-sql
指定鏈接被建立,再被添加到鏈接池以前執行的sql.ide
spring.datasource.connection-init-sqls
使用DBCP connection pool時,指定初始化時要執行的sql測試
spring.datasource.connection-properties.[key]
在使用DBCP connection pool時指定要配置的屬性編碼
spring.datasource.connection-test-query
指定校驗鏈接合法性執行的sql語句
spring.datasource.connection-timeout
指定鏈接的超時時間,毫秒單位.
spring.datasource.continue-on-error
在初始化數據庫時,遇到錯誤是否繼續,默認false
spring.datasource.data
指定Data (DML)腳本
spring.datasource.data-source-class-name
指定數據源的全限定名.
spring.datasource.data-source-jndi
指定jndi的地址
spring.datasource.data-source-properties.[key]
使用Hikari connection pool時,指定要設置的屬性
spring.datasource.db-properties
使用Tomcat connection pool,指定要設置的屬性
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
指定driver的類名,默認從jdbc url中自動探測.
spring.datasource.fair-queue
是否採用FIFO返回鏈接.
spring.datasource.health-check-properties.[key]
使用Hikari connection pool時,在心跳檢查時傳遞的屬性
spring.datasource.idle-timeout
指定鏈接多久沒被使用時,被設置爲空閒,默認爲10ms
spring.datasource.ignore-exception-on-pre-load
當初始化鏈接池時,是否忽略異常.
spring.datasource.init-sql
當鏈接建立時,執行的sql
spring.datasource.initial-size
指定啓動鏈接池時,初始創建的鏈接數量
spring.datasource.initialization-fail-fast
當建立鏈接池時,無法建立指定最小鏈接數量是否拋異常
spring.datasource.initialize
指定初始化數據源,是否用data.sql來初始化,默認: true
spring.datasource.isolate-internal-queries
指定內部查詢是否要被隔離,默認爲false
spring.datasource.jdbc-interceptors
使用Tomcat connection pool時,指定jdbc攔截器,分號分隔
spring.datasource.jdbc-url
指定JDBC URL.
spring.datasource.jmx-enabled
是否開啓JMX,默認爲: false
spring.datasource.jndi-name
指定jndi的名稱.
spring.datasource.leak-detection-threshold
使用Hikari connection pool時,多少毫秒檢測一次鏈接泄露.
spring.datasource.log-abandoned
使用DBCP connection pool,是否追蹤廢棄statement或鏈接,默認爲: false
spring.datasource.log-validation-errors
當使用Tomcat connection pool是否打印校驗錯誤.
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
指定最大的打開的prepared statements數量.
spring.datasource.max-wait
指定鏈接池等待鏈接返回的最大等待時間,毫秒單位.
spring.datasource.maximum-pool-size
指定鏈接池最大的鏈接數,包括使用中的和空閒的鏈接.
spring.datasource.min-evictable-idle-time-millis
指定一個空閒鏈接最少空閒多久後可被清除.
spring.datasource.min-idle
指定必須保持鏈接的最小值(For DBCP and Tomcat connection pools)
spring.datasource.minimum-idle
指定鏈接維護的最小空閒鏈接數,當使用HikariCP時指定.
spring.datasource.name
指定數據源名.
spring.datasource.num-tests-per-eviction-run
指定運行每一個idle object evictor線程時的對象數量
spring.datasource.password
指定數據庫密碼.
spring.datasource.platform
指定schema要使用的Platform(schema-${platform}.sql),默認爲: all
spring.datasource.pool-name
指定鏈接池名字.
spring.datasource.pool-prepared-statements
指定是否池化statements.
spring.datasource.propagate-interrupt-state
在等待鏈接時,若是線程被中斷,是否傳播中斷狀態.
spring.datasource.read-only
當使用Hikari connection pool時,是否標記數據源只讀
spring.datasource.register-mbeans
指定Hikari connection pool是否註冊JMX MBeans.
spring.datasource.remove-abandoned
指定當鏈接超過廢棄超時時間時,是否馬上刪除該鏈接.
spring.datasource.remove-abandoned-timeout
指定鏈接應該被廢棄的時間.
spring.datasource.rollback-on-return
在歸還鏈接時,是否回滾等待中的事務.
spring.datasource.schema
指定Schema (DDL)腳本.
spring.datasource.separator
指定初始化腳本的語句分隔符,默認: ;
spring.datasource.sql-script-encoding
指定SQL scripts編碼.
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 connection pool時指定
spring.datasource.url
指定JDBC URL.
spring.datasource.use-disposable-connection-facade
是否對鏈接進行包裝,防止鏈接關閉以後被使用.
spring.datasource.use-equals
比較方法名時是否使用String.equals()替換==.
spring.datasource.use-lock
是否對鏈接操做加鎖
spring.datasource.username
指定數據庫名.
spring.datasource.validation-interval
指定多少ms執行一次鏈接校驗.
spring.datasource.validation-query
指定獲取鏈接時鏈接校驗的sql查詢語句.
spring.datasource.validation-query-timeout
指定鏈接校驗查詢的超時時間.
spring.datasource.validation-timeout
設定鏈接校驗的超時時間,當使用Hikari connection pool時指定
spring.datasource.validator-class-name
用來測試查詢的validator全限定名.
spring.datasource.xa.data-source-class-name
指定數據源的全限定名.
spring.datasource.xa.properties
指定傳遞給XA data source的屬性
spring.jpa.database
指定目標數據庫.
spring.jpa.database-platform
指定目標數據庫的類型.
spring.jpa.generate-ddl
是否在啓動時初始化schema,默認爲false
spring.jpa.hibernate.ddl-auto
指定DDL mode (none, validate, update, create, create-drop). 當使用內嵌數據庫時,默認是create-drop,不然爲none.
spring.jpa.hibernate.naming-strategy
指定命名策略.
spring.jpa.open-in-view
是否註冊OpenEntityManagerInViewInterceptor,綁定JPA EntityManager到請求線程中,默認爲: true
spring.jpa.properties
添加額外的屬性到JPA provider.
spring.jpa.show-sql
是否開啓sql的log,默認爲: false
spring.jooq.sql-dialect
指定JOOQ使用的SQLDialect,好比POSTGRES.
spring.h2.console.enabled
是否開啓控制檯,默認爲false
spring.h2.console.path
指定控制檯路徑,默認爲: /h2-console
spring.jta.allow-multiple-lrc
是否容許 multiple LRC,默認爲: false
spring.jta.asynchronous2-pc
指定兩階段提交是否能夠異步,默認爲: false
spring.jta.background-recovery-interval
指定多少分鐘跑一次recovery process,默認爲: 1
spring.jta.background-recovery-interval-seconds
指定多久跑一次recovery process,默認: 60
spring.jta.current-node-only-recovery
是否過濾掉其餘非本JVM的recovery,默認爲: true
spring.jta.debug-zero-resource-transaction
是否追蹤沒有使用指定資源的事務,默認爲: false
spring.jta.default-transaction-timeout
設定默認的事務超時時間,默認爲60
spring.jta.disable-jmx
是否禁用jmx,默認爲false
spring.jta.enabled
是否開啓JTA support,默認爲: true
spring.jta.exception-analyzer
設置指定的異常分析類
spring.jta.filter-log-status
使用Bitronix Transaction Manager時,是否寫mandatory logs,開啓的話,能夠節省磁盤空間,可是調試會複雜寫,默認爲false
spring.jta.force-batching-enabled
使用Bitronix Transaction Manager時,是否批量寫磁盤,默認爲true.
spring.jta.forced-write-enabled
使用Bitronix Transaction Manager時,是否強制寫日誌到磁盤,默認爲true
spring.jta.graceful-shutdown-interval
當使用Bitronix Transaction Manager,指定shutdown時等待事務結束的時間,超過則中斷,默認爲60
spring.jta.jndi-transaction-synchronization-registry-name
當使用Bitronix Transaction Manager時,在JNDI下得事務同步registry,默認爲: java:comp/TransactionSynchronizationRegistry
spring.jta.jndi-user-transaction-name
指定在JNDI使用Bitronix Transaction Manager的名稱,默認:java:comp/UserTransaction
spring.jta.journal
當使用Bitronix Transaction Manager,指定The journal是否disk仍是null仍是一個類的全限定名,默認disk
spring.jta.log-dir
Transaction logs directory.
spring.jta.log-part1-filename
指定The journal fragment文件1的名字,默認: btm1.tlog
spring.jta.log-part2-filename
指定The journal fragment文件2的名字,默認: btm2.tlog
spring.jta.max-log-size-in-mb
指定journal fragments大小的最大值. 默認: 2M
spring.jta.resource-configuration-filename
指定Bitronix Transaction Manager配置文件名.
spring.jta.server-id
指定Bitronix Transaction Manager實例的id.
spring.jta.skip-corrupted-logs
是否忽略corrupted log files文件,默認爲false.
spring.jta.transaction-manager-id
指定Transaction manager的惟一標識.
spring.jta.warn-about-zero-resource-transaction當使用Bitronix Transaction Manager時,是否對沒有使用指定資源的事務進行警告,默認爲: true