百度使用了@SpringBootApplication(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})解决了这个报错但是又会报错
ERROR 716 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field orderDetailRepository in com.imooc.order.service.impl.OrderServiceImpl required a bean of type 'com.imooc.order.repository.OrderDetailRepository' that could not be found.