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