eureka项目无数据库spring注释报错

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

解决方案:在主类加注释

@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
posted @ 2023-03-26 19:31  ethon-wang  阅读(12)  评论(0编辑  收藏  举报