在项目启动类的@SpringBootApplication注解后添加(exclude = DataSourceAutoConfiguration.class)
// 注解括号中的内容为取消
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class AbbccApplication {
public static void main(String[] args) {
SpringApplication.run(AbbccApplication.class, args);
}
}
网友评论