错误信息
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-05-07 18:22:06.986 ERROR 23336 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'com.czxy.changgou3.mapper.OrderGoodsMapper' that could not be found.
Action:
Consider defining a bean of type 'com.czxy.changgou3.mapper.OrderGoodsMapper' in your configuration.
Warning: No leading - on line 35 of `D:\dev\Java\jdk8\jre\lib\i386\jvm.cfg'
Warning: Missing VM type on line 35 of `D:\dev\Java\jdk8\jre\lib\i386\jvm.cfg'
Process finished with exit code 1
原因:
这是个很粗心造成的问题 , 在写mapper是没有注入 @org.apache.ibatis.annotations.Mapper
把这个写上就ok了