找不到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)入口类是在顶层包里面么?
052019-11-20