无法解析名称[org.hibernate.dialect.MYSQL5Dialect]作为策略[org.hibernate.dialect.Dialect] [英] Unable to resolve name [org.hibernate.dialect.MYSQL5Dialect] as strategy [org.hibernate.dialect.Dialect]
本文介绍了无法解析名称[org.hibernate.dialect.MYSQL5Dialect]作为策略[org.hibernate.dialect.Dialect]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
spring.jpa.show-sql = 我已经配置好了,为什么要报告上面的错误? true
logging.level.org.springframework.data = DEBUG
spring.jpa.hibernate.ddl-auto = update
spring.datasource.url = jdbc:mysql:// localhost:3306 / test
spring.datasource.username = root
spring.datasource.password = root
spring.datasource.driver-class-name = com.mysql.jdbc.Driver
spring .jpa.hibernate.namingstrategy = org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MYSQL5Dialect
解决方案
您的配置中有错字
be
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
I have configured it like this.why do i report the above error?
spring.jpa.show-sql = true
logging.level.org.springframework.data=DEBUG
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.hibernate.namingstrategy=org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MYSQL5Dialect
解决方案
You have a typo in your configuration
The correct one should be
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
这篇关于无法解析名称[org.hibernate.dialect.MYSQL5Dialect]作为策略[org.hibernate.dialect.Dialect]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文