解决问题:Error creating bean with name 'xxxController': Unsatisfied dependency expressed through field 'xxxService'


问题

这个问题是因为bean在注入service的时候失败了,而service的实现类和mapper没有关联起来,mapper找不到

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 'xxxServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'

解决办法

在mapper接口上加一个注解@Mapper

@Mapper
public interface xxxProductMapper extends BaseMapper<SmmartProduct> {

}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 出错:Error creating bean with name 'studentServiceImpl': Unsatisfied dependency expressed through field 'studentMapper'; SpringbootExpection 1: Error creating bean with name 'xxxImpl': Unsatisfied dependency expressed through field 错误: Error creating bean with name 'studentController': Unsatisfied dependency expressed through field 'studentServiceImpl'; ssm错误dDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; 记一次Error creating bean with name 'xxxxController': Unsatisfied dependency expressed through field 'xxxxService'; 报错Error creating bean with name 'orderController': Unsatisfied dependency expressed through field 'orderService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: mybatis-plus-boot-starter 引入后启动报错 Error creating bean with name 'meetingAction': Unsatisfied dependency expressed through field 'userMapper'; Redis——解决“org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'redisReferenceResolver': Unsatisfied dependency expressed through constructor parameter 0” 关于本次【Unsatisfied dependency expressed through field 'iClientFeignEmployeeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.oppo】 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'indexServiceImpl': Unsatisfied dependency expressed through field 'indexDao'; nested exception is org.s
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM