Springboot启动报错:Failed to determine a suitable driver class

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class

 

原因:

没有配置数据源,但springboot默认启用了数据源配置

解决办法:

启动类添加exclude参数,不启用DataSource

 

posted @ 2020-02-21 12:20  Alan*Chen  阅读(820)  评论(0编辑  收藏  举报