ssm错误dDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService';


dDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; 
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type 'com.bjpowernode.blog.back.service.UserService'
available: expected at least 1 bean which qualifies as autowire candidate.
Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

原因:service层的注解没有写

解决办法

检查 dao层(@param可不写)

service层(@Server) 

controller层(@Controller)


免责声明!

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



猜您在找 错误: Error creating bean with name 'studentController': Unsatisfied dependency expressed through field 'studentServiceImpl'; 解决问题:Error creating bean with name 'xxxController': Unsatisfied dependency expressed through field 'xxxService' 记一次Error creating bean with name 'xxxxController': Unsatisfied dependency expressed through field 'xxxxService'; 出错: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 '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'; 关于本次【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 Redis——解决“org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'redisReferenceResolver': Unsatisfied dependency expressed through constructor parameter 0”
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM