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
How to Create and Run Apache Jmeter Test Scripts from a Java Program
How to Format Decimals in a Currency Format
How to Make My Arraylist Thread-Safe? Another Approach to Problem in Java
Using Selenium Webdriver to Retrieve the Value of an HTML Input
Why Can't We Use 'This' Keyword in a Static Method
Swingutilities.Invokelater() Why Is It Needed
How to Properly Match Varargs in Mockito
Format Double Value in Scientific Notation
Overriding Private Methods in Java
How to Get the Size of an Array, a Collection, or a String in Java
How to Get Out of While Loop in Java with Scanner Method "Hasnext" as Condition
How to Set the System Time in Java
How to Allow Introducing Only Digits in Jtextfield