把@SpringBootApplication改成 @SpringBootApplication(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
代码如下:
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class}) public class SpringbootmybatisApplication { public static void main(String[] args) { SpringApplication.run(SpringbootmybatisApplication.class, args); } }
重新debug:
标签:SpringBoot,启动,SpringBootApplication,DataSourceAutoConfiguration,exclude,LoggingF From: https://www.cnblogs.com/rongxiaoya/p/17674412.html