JPA org.hibernate.service.spi.ServiceException: Unable to create requested service [xxx]问题解决
程序员文章站
2022-04-12 21:00:22
...
问题描述:
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
问题分析:
1、Spring Boot配置里面没有设置数据库类型,导致报错。
解决办法:
(1)使用spring.datasource.platform设置数据库类型。
spring.datasource.platform = mysql
(2)使用spring.jpa.database设置数据库类型。
spring.jpa.database = mysql
推荐阅读
-
jpa Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
-
org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine
-
JPA org.hibernate.service.spi.ServiceException: Unable to create requested service [xxx]问题解决
-
org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine