-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Description
I have tried using hikari datasource configuration as following:
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.jdbc-url=jdbc:oracle:thin:@//localhost:1521/sandbox
spring.datasource.hikari.username=tiep
spring.datasource.hikari.password=123456
And when I start appilication with --debug, it gives me this exception:
org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:218) ~[spring-boot-autoconfigure-1.4.0.RELEASE.jar:1.4.0.RELEASE]
After few debug investigations, I found out that at line 76 in DataSourceConfiguration.java the DataSourceProperties is not instantiate using spring.datasource.hikari properties but spring.datasource
Metadata
Metadata
Assignees
Labels
type: documentationA documentation updateA documentation update