Problem Description:
@Override Error creating bean with name 'ucenterMemberController': Unsatisfied dependency expressed through field 'ucenterMemberService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ucenterMemberServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.atguigu.educenter.mapper.UcenterMemberMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Cause Analysis:
Noted one sentence of the error: No qualifying bean of type’com.atguigu.educenter.mapper.UcenterMemberMapper’ available: expected at least 1 bean which qualifies as autowire candidate. It means that the mapper is not scanned, and it needs to be added to the startup class. Scan the mapper’s comments
solution:
There was a mistake here, so the mapper was not scanned, so an error was reported.
Read More:
- Error creating bean with name ‘captchaController‘: Unsatisfied dependency expressed through field ‘c
- [Solved] UnsatisfiedDependencyException: Error creating bean with name
- Error creating bean with name ‘studentMapper‘ defined in file
- [Solved] nacos Startup Error: Error creating bean with name ‘authFilterRegistration‘ defined in class path resource
- [Solved] Redis Error: Error creating bean with name stringRedisTemplate defined in class path resource
- [Solved] Error creating bean with name ‘sqlSessionFactory‘ defined in class path resource
- [Solved] renren-fast Startup Error: Error creating bean with name ‘scheduleJobController‘
- How to Solve Error creating bean with name ‘log’loginController’
- Eureka unit test error creating bean with name ‘Eureka autoservice registration’: Singleton bean
- [Solved] JWT + SSO Error: Error creating bean with name ‘jwtTokenServices’
- Tk.mapper Common mapper Error: Error creating bean with name ‘commonMapper‘ defined in file xxx
- [Solved] Springboot Error creating bean with name ‘dataSource’ defined in class path resource
- [Solved] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource‘
- Spring cloud Eureka error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘globalTransa
- SpringBoot Access Clickhouse Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘jdbcConverter’ defined in class path resource [***.class]
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- [Solved] springmvc:Error creating bean with name ‘org.springframework.cache.interceptor.CacheInterceptor
- Error creating bean with name ‘redistemplate’ defined in class path resource
- When integrating redis with SSM framework, error creating bean with name ‘rediscontentserviceimpl’ defined in file