Class DatasourceConfiguration

java.lang.Object
io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration
All Implemented Interfaces:
BasicJdbcConfiguration

@EachProperty(value="datasources", primary="default") @Context public class DatasourceConfiguration extends Object implements BasicJdbcConfiguration
Allows the configuration of UCP JDBC data sources. All properties on PoolDataSourceImpl are available to be configured.

If the url, driver class, validation sql query, username, or password are missing, sensible defaults will be provided when possible. If no configuration beyond the datasource name is provided, an in memory datasource will be configured based on the available drivers on the classpath.

Since:
2.0.1
Author:
toddsharp