出现的问题:
1 | [platform] ERROR 2017-02-22 17:46:05,756 [RMI TCP Connection(4)-127.0.0.1] org.springframework.web.context.ContextLoader.() | Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pmTranLimitLiteServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.msds.zkutil.ZkLockFactory] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(mappedName=, shareable=true, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER, lookup=)} |
最重要的是这句
1 | org.springframework.beans.factory.BeanCreationException: |
出现的原因:
缺少相关的jar包或者依赖
建议不要自己配置idea的module和artificts
直接在pom.xml文件添加
1 | <artifactId>hisen-project</artifactId><!--加在这句话后面--> |
其他原因
开始不知道什么问题,后来搜索这个服务。
发现这跟dubbo有关,于是百度搜索进了官网
没想到常见问题里面就有说这个事情
1 | 13. 出现org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxxService': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Method must not be null怎么办? |
更多dubbo问题:点击查看