找不到dao

来源:2-3 集成mybatis

慕莱坞3325414

2018-05-30


Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.

2018-05-30 18:10:07.868 ERROR 4592 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Field userDao in com.miaosha.service.UserService required a bean of type 'com.miaosha.dao.UserDao' that could not be found.



Action:


Consider defining a bean of type 'com.miaosha.dao.UserDao' in your configuration.

老师,这是什么原因

写回答

1回答

若鱼1919

2018-05-31

(1)UserDao上加Mapper注解了么?

(2)入口类是在顶层包里面么?

0
5
若鱼1919
回复
xialei
从https://git.imooc.com/coding-168/coding-168这里下载代码,然后用文件比对工具一行一行的对比下代码
2019-11-20
共5条回复

Java秒杀系统方案优化 掌握海量访问通用解决方案

各种缓存/JSR303参数检

2695 学习 · 941 问题

查看课程