码迷,mamicode.com
首页 > 编程语言 > 详细

spring boot遇到的问题

时间:2015-08-27 07:15:58      阅读:223      评论: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!