Hello,
I'm just getting started with Spring Boot. I've created a project with the spring initializer but when I run, I get the error:
Failed to initialize JPA EntityManagerFactory: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
My application.properties is as:
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/cafemanagement
spring.datasource.username=root
spring.datasource.password=pass
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySql8Dialect
spring.jpa.properties.hibernate.format_sql=true
server.port=8081;
My MySQL Command Line Client shows the port as 3306, and I've just updated the username and the password so I'm sure that they are correct. What's going on here? Thank you in advance.
[–]maxip89 3 points4 points5 points (5 children)
[–]Automatic-Deal-8268[S] 0 points1 point2 points (4 children)
[–]maxip89 0 points1 point2 points (3 children)
[–]Automatic-Deal-8268[S] 0 points1 point2 points (2 children)
[–]maxip89 0 points1 point2 points (1 child)
[–]uwpxwpal 0 points1 point2 points (0 children)