1. 程式人生 > >Springboot啟動報錯問題

Springboot啟動報錯問題


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-09-27 17:45:07.350 |-ERROR [restartedMain] org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter [42] -| 

***************************
APPLICATION FAILED TO START
***************************

Description:

Field weiXinRootService in com.bicycle.weixin.controller.HomePageController required a bean of type 'com.bicycle.mapper.SubscribeMapper' that could not be found.


Action:

Consider defining a bean of type 'com.bicycle.mapper.SubscribeMapper' in your configuration.

這個是因為在Mapper檔案沒有加上@Mapper,導致專案啟動不起來。