Injection of autowired dependencies failed

58 阅读1分钟
  1. 看错对应日志信息,Tomcat服务还会新开一些别的日志

  2. 看报错!!!

前面还有服务没有启动 !!!

下面表示Injection of autowired dependencies failed

 Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.shop.service.itf.IRoleServ com.shop.service.impl.shiro.MyRealm.roleServ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IRoleServ': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.shop.service.itf.IRoleServ. No provider available for the service com.shop.service.itf.IRoleServ from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=yshop_platform&default.timeout=15000&dubbo=2.5.3&interface=com.shop.service.itf.IRoleServ&methods=getEnabledRole,getPermission,addRoleAndMenu,updateRole,getRole,getAllRoleCount,deleteRole,getRoleByCode,updateRoleAndMenu,getMenus,getRoleList,deleteRoleAndMenu,insertRole,updateRoleEnabled&pid=27544&retries=0&side=consumer&timestamp=1730426896499 to the consumer 192.168.3.168 use dubbo version 2.5.3
		at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValue