springboot2.0.5 中DataSource配置檔案
阿新 • • 發佈:2018-12-07
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties) # Whether to stop if an error occurs while initializing the database. spring.datasource.continue-on-error=false # Data (DML) script resource references. spring.datasource.data= # Username of the database to execute DML scripts (if different). spring.datasource.data-username= # Password of the database to execute DML scripts (if different). spring.datasource.data-password= spring.datasource.dbcp2.*= # Commons DBCP2 specific settings # Fully qualified name of the JDBC driver. Auto-detected based on the URL by default. spring.datasource.driver-class-name= # Whether to generate a random datasource name. spring.datasource.generate-unique-name=false spring.datasource.hikari.*= # Hikari specific settings # Initialize the datasource with available DDL and DML scripts. spring.datasource.initialization-mode=embedded # Whether to enable JMX support (if provided by the underlying pool). spring.datasource.jmx-enabled=false # JNDI location of the datasource. Class, url, username & password are ignored when set. spring.datasource.jndi-name= spring.datasource.name= # Name of the datasource. Default to "testdb" when using an embedded database. spring.datasource.password= # Login password of the database. spring.datasource.platform=all # Platform to use in the DDL or DML scripts (such as schema-${platform}.sql or data-${platform}.sql). spring.datasource.schema= # Schema (DDL) script resource references. spring.datasource.schema-username= # Username of the database to execute DDL scripts (if different). spring.datasource.schema-password= # Password of the database to execute DDL scripts (if different). spring.datasource.separator=; # Statement separator in SQL initialization scripts. # SQL scripts encoding. spring.datasource.sql-script-encoding= # Tomcat datasource specific settings spring.datasource.tomcat.*= # Fully qualified name of the connection pool implementation to use. By default, it is auto-detected from the classpath. spring.datasource.type= # JDBC URL of the database. spring.datasource.url= spring.datasource.username= # Login username of the database. # XA datasource fully qualified name. spring.datasource.xa.data-source-class-name= # Properties to pass to the XA data source. spring.datasource.xa.properties=