不废话,直接上解决方案:
在springboot的启动类@SpringBootApplication上做点改动,如下:
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) public class ErdemoApplication { public static void main(String[] args) { SpringApplication.run(ErdemoApplication.class, args); } }
好了。