关于集成mybaitisPlus

提问 0 1285
hi-dudu
hi-dudu 2019-01-29
版本: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)}
回帖
  • 消灭零回复