无法自动加载ShopServiceImpl类?
来源:4-9 店铺注册之前端设计
weixin_慕先生2205647
2020-03-25
出现问题 org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named ‘shopServiceImpl’ is expected to be of type ‘com.imooc.o2o.service.impl.ShopServiceImpl’ but was actually of type 'com.sun.proxy.$Proxy20’
请问该如何解决?
写回答
1回答
-
weixin_慕先生2205647
提问者
2020-03-25
哦哦 知道哪里出问题了ShopManagementController里面 自动装载的是ShopServiceImpl 而不是ShopService
那能请问一下老师为什么装载接口,不直接装载接口的实现呢?
012020-03-26
相似问题