Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-05-26 16:54:56.276 ERROR 8516 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field roomService in edu.hpu.controller.GuestController required a bean of type 'edu.hpu.service.RoomService' that could not be found.
Action:
Consider defining a bean of type 'edu.hpu.service.RoomService' in your configuration.
With spring boot reported such a mistake, in fact, the solution is simple, add a comment in @Service edu.hpu.service.impl.RoomServiceImpl. The specific reasons for later learning, Xianpao up.
This is the top service, the next, mapper also facing the same problem
Field roomMapper in edu.hpu.service.impl.RoomServiceImpl required a bean of type 'edu.hpu.mapper.RoomMapper' that could not be found.
Action:
Consider defining a bean of type 'edu.hpu.mapper.RoomMapper' in your configuration.
Process finished with exit code 0
The same ideas, add annotations RoomMapper @Mapper interface.