关于集成mybaitisPlus

提问 未结 0 318
hi-dudu
hi-dudu 2019-01-29
悬赏:20积分
版本:renren-fast 浏览器:
项目中用到的mybaitisplus是2.x版本,为啥不升到3.x 我升级到3.x,修改成对应的方法后, 出现无法注入dao层问题 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'XXXController': Unsatisfied dependency expressed through field 'XXXService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'XXXService': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.company.modules.sys.dao.XXXDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
回帖
  • 消灭零回复