Unable to define built-in database driver class for database type NONE

I am developing an API server using Spring Boot and Hibernate for persistence.

I created a DataSource in InteliJ and created entity classes using auto-generated from a schema, but when I try to start it, I get an error:

"Cannot determine the embedded base driver class for the NONE database type"

although I provided it in persistence.xml

I did not write anything in application.proprieties.

I tried using methods like here , but I am not using h2Database. In my pom.xml , I have a dependency for the mysql connector, if that matters.

I analyzed this problem for a day of the hole, I have no ideas.


One more thing I tried: in pom.xml I use h2Database dependecy, but when I try to make a request, I get this error:

"org.hibernate.tool.hbm2ddl.SchemaExport: schema" BUY_MEDB "not found; SQL statement:"

I do not know why it is trying to use the BUY_MEDB scheme when all my classes have the BuyMeDB scheme name. I even tried using "INIT = CREATE SCHEMA IF NOT EXISTS BuyMeDB" in the persistence.xml file, and this did not work.

+4
source share

Source: https://habr.com/ru/post/1670884/


All Articles