首页 > 其他分享 >20220814 idea_SpringBoot_启动 jpa 启动 Access to DialectResolutionInfo cannot be null when 'hib

20220814 idea_SpringBoot_启动 jpa 启动 Access to DialectResolutionInfo cannot be null when 'hib

时间:2022-08-14 14:06:37浏览次数:83  
标签:dialect hibernate 启动 jpa spring Access set

1    问题

Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

 

2    解决方案

2.1    未解决

直接用这个问题搜索,使用了很多方法,都没有达到效果

 

2.2    已解决

application.properties添加以下代码

#jpa??
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = true
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = none
# Naming strategy
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect

 

 

3    反思

自己以前都是拿着部分代码直接上网直接搜索,没有系统性。现在应该是从网上先拿来一篇范文,照着试试。不行的话,重来。使用小步快跑,大步迭代的方式

标签:dialect,hibernate,启动,jpa,spring,Access,set
From: https://www.cnblogs.com/1446358788-qq/p/16585322.html

相关文章