SpringBoot series configuration properties
Also attach individual articles on the springboot
Also attach individual articles on the springboot
datasource
-
spring.dao.exceptiontranslation.enabled
whether to open PersistenceExceptionTranslationPostProcessor, the default is true -
spring.datasource.abandon-when-percentage-full
to be closed when the report or timeout is set what proportion accounted discarded connected -
spring.datasource.allow-pool-suspension
when using Hikari pool, the pool is allowed to connect to pause, the default is: false -
spring.datasource.alternate-username-allowed
whether to allow an alternative username. -
spring.datasource.auto-commit
specify whether updates automatically submitted. -
spring.datasource.catalog
specify the default catalog. -
spring.datasource.commit-on-return
setting when the connection is returned, if not yet to submit all completed transactions -
spring.datasource.connection-init-sql
specified connection is created, and then be added to the sql executed before the connection pool. -
the init-sqls-spring.datasource.connection
SQL using DBCP connection pool, to perform initialization specified -
spring.datasource.connection-properties. [key]
specify attributes to be configured when using DBCP connection pool -
the Test-Query-spring.datasource.connection
SQL statement specifies the connection check the legality of execution -
spring.datasource.connection-timeout
timeout specified connection milliseconds. -
spring.datasource.continue-on-error
when initializing a database, an error is encountered whether to continue, default false -
spring.datasource.data
specified Data (DML) Screenplay -
spring.datasource.data-source-class-name
fully qualified name of the specified data source. -
spring.datasource.data-source-jndi
specified jndi address -
spring.datasource.data-source-properties. [key ]
When using Hikari connection pool, to set the specified property -
spring.datasource.db-properties
using Tomcat connection pool, to set the specified property -
spring.datasource.default-auto-commit
to submit it automatically. -
spring.datasource.default-catalog
specified connection default catalog. -
spring.datasource.default-read-only
whether to set the default read-only connection. -
spring.datasource.default-transaction-isolation
specify the default transaction isolation level of the connection. -
spring.datasource.driver-class-name
specifies the name of the class driver, automatically default probe from the JDBC URL. -
spring.datasource.fair-queue
if a FIFO return connection. -
spring.datasource.health-check-properties. [key ]
When using Hikari connection pool, the heartbeat transmitting property inspection -
spring.datasource.idle-timeout
when connecting how long not being used, is set to idle, the default is 10ms -
spring.datasource.ignore-exception-on-pre- load
when initializing the connection pool, whether or not ignore the exception. -
SQL-spring.datasource.init
SQL When connection is created, the execution of -
spring.datasource.initial-size
number of connections when starting the connection pool, the initially established -
spring.datasource.initialization-fail-fast
when creating a connection pool, you can not create the minimum number of connection specifies whether Throws -
spring.datasource.initialize
specify initialization data source, whether with data.sql to initialize, default: true -
spring.datasource.isolate-internal-queries
to specify whether an internal inquiry to be isolated, the default is false -
spring.datasource.jdbc-interceptors
use Tomcat connection pool, designated jdbc interceptor, separated by semicolons -
spring.datasource.jdbc-url
指定JDBC URL. -
spring.datasource.jmx-enabled
whether to open JMX, the default is: false -
spring.datasource.jndi-name
specifies the name of jndi. -
spring.datasource.leak-detection-threshold
using Hikari connection pool, how many milliseconds detecting a leaking connection. -
spring.datasource.log-abandoned
the use of DBCP connection pool, whether the statement or discarded track connection, the default is: false -
spring.datasource.log-validation-errors
when using Tomcat connection pool whether to print check error. -
spring.datasource.login-timeout
specified timeout connection to the database. -
spring.datasource.max-active
specified pool maximum number of active connection. -
spring.datasource.max-age
specifies the maximum age of the connection pool -
spring.datasource.max-idle
specified number of the largest free connection pool. -
spring.datasource.max-lifetime
specifies the maximum survival time of the connection pool, in milliseconds. -
spring.datasource.max-open-prepared-statements
specify the maximum number of prepared statements open. -
spring.datasource.max-wait
the specified maximum wait time wait for a connection return connection pool, in milliseconds. -
spring.datasource.maximum-pool-size
Specifies the maximum number of connection pools, and the use of free connections comprises. -
spring.datasource.min-evictable-idle-time- millis
specified minimum idle after a long idle connection can be cleared. -
spring.datasource.min-idle
specified must be kept to a minimum (For DBCP and Tomcat connection pools) connected -
spring.datasource.minimum-idle
specifies the minimum number of idle connection maintained, when a specified HikariCP. -
spring.datasource.name
specify the data source name. -
spring.datasource.num-tests per eviction run-- -
the number of objects of the specified object evictor thread runs every idle -
spring.datasource.password
specify the database password. -
spring.datasource.platform
a schema to be used Platform (schema - $ {platform} .sql), default: all -
spring.datasource.pool-name
specifies the name of the connection pool. -
spring.datasource.pool-prepared-statements
specify whether the pool of statements. -
spring.datasource.propagate-interrupt-state
while waiting for a connection, if the thread is interrupted, if the spread of the interrupt status. -
spring.datasource.read-only
when using Hikari connection pool, whether the flag read-only data source -
spring.datasource.register-mbeans
designated Hikari connection pool is registered with JMX MBeans. -
spring.datasource.remove-abandoned
specified timeout when connecting more than waste time, whether immediately delete the connection. -
spring.datasource.remove-abandoned-timeout
specified connection time should be discarded. -
spring.datasource.rollback-on-return
when the return connection, whether to wait for the rollback of a transaction. -
spring.datasource.schema
specified Schema (DDL) script. -
spring.datasource.separator
specified initialization script statement separator, default:; -
spring.datasource.sql-script-encoding
specified SQL scripts encoded. -
spring.datasource.suspect-timeout
specified timeout period before printing connected discarded. -
spring.datasource.test-on-borrow
when borrowing from the connection pool, whether the test connection. -
spring.datasource.test-on-connect
when you create, test whether the connection -
spring.datasource.test-on-return
test whether the return connection is connected to the connection pool. -
spring.datasource.test-while-idle
when the connection is idle, whether the connection test. -
spring.datasource.time-between-eviction-runs- millis
specified idle connection check, connected to the waste cleanup, the time between the operation of the free connection pool size adjustment interval -
spring.datasource.transaction-isolation
specified transaction isolation level, specify when using Hikari connection pool -
spring.datasource.url
指定JDBC URL. -
spring.datasource.use-disposable-connection-facade
whether connection package, after being used to prevent the connection is closed. -
spring.datasource.use-equals
whether String.equals comparison method name () == replaced. -
spring.datasource.use-lock
if the connecting operation of the lock -
spring.datasource.username
specify the database name. -
spring.datasource.validation-interval
how many ms to perform the specified time connection check. -
spring.datasource.validation-query
specified get sql query connection check for a connection. -
spring.datasource.validation-query-timeout
specified timeout connection check query. -
spring.datasource.validation-timeout
set connection timeout check, when a specified Hikari connection pool -
spring.datasource.validator-class-name
to test the query validator fully qualified name. -
spring.datasource.xa.data-source-class-name
fully qualified name of the specified data source. -
spring.datasource.xa.properties
specified property passed to the XA data source
JPA
-
spring.jpa.database
specify the target database. -
spring.jpa.database-platform
specifies the type of the target database. -
spring.jpa.generate-ddl
whether to initialize schema at startup, the default is false -
spring.jpa.hibernate.ddl-auto
specify DDL mode (none, validate, update , create, create-drop). When using the embedded database, the default is to create-drop, otherwise none. -
spring.jpa.hibernate.naming-strategy
specified naming strategy. -
spring.jpa.open-in-view
is registered OpenEntityManagerInViewInterceptor, bind JPA EntityManager to request thread, the default is: true -
spring.jpa.properties
add additional attributes to the JPA provider. -
spring.jpa.show-sql
whether to open the log sql, the default is: false
jooq
-
spring.jooq.sql-dialect
specified JOOQ use SQLDialect, such POSTGRES.
h2
-
spring.h2.console.enabled
whether to open the console, the default is false -
spring.h2.console.path
specify the path to the console, the default is: / h2-console
JTA
-
spring.jta.allow-multiple-lrc
whether to allow multiple LRC, the default is: false -
spring.jta.asynchronous2-pc
specify whether asynchronous two-phase commit, the default is: false -
spring.jta.background-recovery-interval
specified number of minutes to run a recovery process, the default is: 1 -
spring.jta.background-recovery-interval-seconds
to specify how often to run a recovery process, default: 60 -
spring.jta.current-node-only-recovery
whether to filter out this recovery other non-JVM, the default is: true -
spring.jta.debug-zero-resource-transaction
whether or not to use the specified resource tracking a transaction, the default is: false -
spring.jta.default-transaction-timeout
to set the default transaction timeout defaults to 60 -
spring.jta.disable-jmx
whether to disable jmx, the default is false -
spring.jta.enabled
whether to open the JTA support, default: true -
spring.jta.exception-analyzer
disposed specified exception class analysis -
spring.jta.filter-log-status
when using Bitronix Transaction Manager, whether written mandatory logs, open, you can save disk space, but will be complicated to write debugging, defaults to false -
spring.jta.force-batching-enabled
when using Bitronix Transaction Manager, whether batch write to disk, the default is true. -
spring.jta.forced-write-enabled
when using Bitronix Transaction Manager, if forced to write the log to disk, the default is true -
spring.jta.graceful-shutdown-interval
when Bitronix Transaction Manager, waiting for the end of the transaction specified time shutdown, over the break, the default is 60 -
spring.jta.jndi-transaction-synchronization-registry- name
when using Bitronix Transaction Manager, transaction synchronization obtained in the JNDI registry, the default is: java: comp / TransactionSynchronizationRegistry -
spring.jta.jndi-user-transaction-name
specifies the name to use Bitronix Transaction Manager in JNDI, default: java: comp / UserTransaction -
spring.jta.journal
When Bitronix Transaction Manager, specify whether disk or null The journal is a fully qualified class name, the default disk -
spring.jta.log-dir
Transaction logs directory. -
spring.jta.log-part1-filename
Specifies the file name The journal fragment 1, default: btm1.tlog -
spring.jta.log-part2-filename
Specifies the file name The journal fragment 2, default: btm2.tlog -
-log-size-spring.jta.max in-MB
. maximum default size specified journal fragments: 2M -
spring.jta.resource-configuration-filename
specified Bitronix Transaction Manager configuration file name. -
spring.jta.server-id
specified id Bitronix Transaction Manager instance. -
spring.jta.skip-corrupted-logs
whether to ignore the corrupted log files file, the default is false. -
spring.jta.transaction-manager-id
specified Transaction manager of unique identification. -
spring.jta.warn-about-zero-resource- transaction
when using Bitronix Transaction Manager, whether or not the use of the specified resource affairs warning, default: true