spring boot遇到的问题

时间:2015-08-27 07:13:33   收藏:0   阅读:7552

配置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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!