Consider defining a bean of type ‘XXX’ in your configuration.
·
springboot程序入口处:
@SpringBootApplication
public class DemoApplication {
修改为:
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class DemoApplication {
SpringApplication.run(DemoApplication.class, args);
}
更多推荐


所有评论(0)