类的使用
org.springframework.boot.jdbc.DataSourceBuilder
使用DataSourceBuilder的程序包
程序包
说明
Auto-configuration for JDBC.
Support for Java Database Connectivity (JDBC).
-
org.springframework.boot.autoconfigure.jdbc中DataSourceBuilder的使用
修饰符和类型方法说明DataSourceProperties.initializeDataSourceBuilder()
Initialize aDataSourceBuilder
with the state of this instance. -
org.springframework.boot.jdbc中DataSourceBuilder的使用
修饰符和类型方法说明static DataSourceBuilder
<?> DataSourceBuilder.create()
Create a newDataSourceBuilder
instance.static DataSourceBuilder
<?> DataSourceBuilder.create
(ClassLoader classLoader) Create a newDataSourceBuilder
instance.static DataSourceBuilder
<?> DataSourceBuilder.derivedFrom
(DataSource dataSource) Create a newDataSourceBuilder
instance derived from the specified data source.DataSourceBuilder.driverClassName
(String driverClassName) Set the driver class name that should be used when building the datasource.Set the password that should be used when building the datasource.<D extends DataSource>
DataSourceBuilder<D> Set theDataSource
type that should be built.Set the URL that should be used when building the datasource.Set the username that should be used when building the datasource.