SpringBoot+Mybatis 启动提示找不到Mapper

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Demo_Liu/article/details/81453204

控制台报错:

2018-08-06 13:59:42.480  INFO 6496 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-08-06 13:59:42.558 ERROR 6496 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

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

Description:

Field ioPojoMapper in com.example.controller.IoController required a bean of type 'com.example.mapper.IoPojoMapper' that could not be found.


Action:

Consider defining a bean of type 'com.example.mapper.IoPojoMapper' in your configuration.


Process finished with exit code 1

提示我们找不到Mapper,这种情况,在Mapper文件上加上@Mapper就可以了

以上

猜你喜欢

转载自blog.csdn.net/Demo_Liu/article/details/81453204
今日推荐