标签:
配置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