1. @SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
2.配置文件中增加
spring.autoconfigure.exclude