首页 > 编程语言 > 详细

spring boot遇到的问题

时间:2015-08-27 07:13:33      阅读:7552      评论:0      收藏:0      [点我收藏+]

配置mysql数据库后,运行mvn spring-boot:run总是报如下错:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.2.5.RELEASE:run (default-cli) on project zs:
An exception occured while running. null: InvocationTargetException: Error creating bean with name ‘entityManagerFactory‘ defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect‘ not set -> [Help 1]
[ERROR]


后经过在application.properties配置如下项问题得到解决:

spring.jpa.database: MYSQL

spring boot遇到的问题

原文:http://my.oschina.net/heau/blog/497668

(1)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!