Spring Boot - Cannot Determine Embedded Database Driver Class for Database Type None

Spring Boot - Cannot determine embedded database driver class for database type NONE

You haven't provided Spring Boot with enough information to auto-configure a DataSource. To do so, you'll need to add some properties to application.properties with the spring.datasource prefix. Take a look at DataSourceProperties to see all of the properties that you can set.

You'll need to provide the appropriate url and driver class name:

spring.datasource.url = …
spring.datasource.driver-class-name = …

Spring boot Bean exception: Cannot determine embedded database driver class for database type NONE

I found a solution to run my application with Eclipse.

Before I tried to run my application using Java Application -> SpringApplication with the main class: org.springframework.boot.SpringApplication. Changing the main class to xxx.Application (where xxx is the projectname) works.

Spring Boot: Cannot determine embedded database driver class for database type NONE

I think the following code addition to spring-config.xml might resolve the issue:

<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="${DbDriverName}" />
<property name="url" value="${DbUrl}" />
<property name="username" value="${DbUsername}" />
<property name="password" value="${DbPassword}" />
</bean>

Cannot determine embedded database driver class for database type NONE while running jar

You should create the jar from maven, to do that go to View on top then Tool Windows/Maven Projects and from there double click on install in LifeCycle option in maven. Use the jar created by that command instead of using intellij. It
Should work.



Related Topics



Leave a reply



Submit