Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-08-13 11:50:29.595 ERROR 12936 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean named 'Franchiser.IFranchiserService' that could not be found.
Action:
Consider defining a bean named 'Franchiser.IFranchiserService' in your configuration.
在启动项目时如果出现这种情况则在SpringBootStartApplication中添加
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class}),重新启动即可,若还是不行则需要看Controller包和Application包是否处于平行位置