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);
}
还没有评论,来说两句吧...