0

I am trying to develop spring boot application. I am getting multiple errors while running the Spring Boot application. Below are the errors on the console screen getting while running the application:

  1. Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, mysql://localhost:3306/myhiber

  2. Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

  3. Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

  4. Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

Mark Rotteveel
  • 90,369
  • 161
  • 124
  • 175
  • Does this answer your question? [org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set](https://stackoverflow.com/questions/26548505/org-hibernate-hibernateexception-access-to-dialectresolutioninfo-cannot-be-null) – Alien May 29 '22 at 05:19
  • Have checked that link, and checked all annotations and properties. All are correct then also error is coming SpringBootApplication Annotation also correctly mentioned in the Main class – Prabhanshu May 29 '22 at 10:50
  • 1
    A proper JDBC URL starts with `jdbc:`, so the URL you should be using is `jdbc:mysql://localhost:3306/myhiber` – Mark Rotteveel May 29 '22 at 16:23

0 Answers0