houko / SpringBootUnity

rabbitmq、redis、scheduled、socket、mongodb、Swagger2、spring data jpa、Thymeleaf、freemarker etc. (muti module spring boot project) (with spring boot framework,different bussiness scence with different technology。)

Home Page:http://xiaomo1992.github.io/SpringBootUnity/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mongodb 为什么配置到非本地时会报错呢?

zteBill opened this issue · comments

Description:

Cannot determine embedded database driver class for database type NONE

Action:

If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).

2017.1版本己修复,不好意思。久等

我试了一下 的确可以启动了,请问是哪里配置的问题呢? 因为我自己写demo测试好像是会报这个错误,一直没搞明白原因是啥,请教一下,谢谢 @xiaomoinfo

1.5.6版本的改动,如果你没配置数据库信息会报错。他报错的意思是 因为你没有配置数据库信息,程序启动的时候无法决定如何去连接。

你如果想忽略这个错误,可以在 你的启动函数里 加个这个注解
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})