Failed to auto-configure a DataSource: ‘spring.datasource.url‘ is not specified and no embedded data
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
今天搞了个读写分离多数据源的项目,启动时报了这个错,查了好几个博客都说用在启动类加
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
但是我加了还是报这
原创
2021-07-24 16:41:05 ·
569 阅读 ·
0 评论