springboot 多数据源启动报错

报错内容如下:

*************************** APPLICATION FAILED TO START *************************** 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,

DruidDataSourceAutoConfigure.class

})

public class Application {

...

}