org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdbcTableServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans. factory.BeanCreationException: Error creating bean with name 'dataPermissionServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: ...(一堆bean创建不出来) Injection of resource dependencies failed; nested exception is org.springframework.beans.factory. BeanCreationException: Error creating bean with name 'druidClientService': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: com.google.inject.util.Types.collectionOf (Ljava/lang/reflect/Type;)Ljava/lang/reflect/ParameterizedType
公司的一个项目需要合并到另外一个项目上,机智的我直接把老项目maven需要的jar直接粘过来,结果报错一堆还找不到问题...
最终,排除法确定,需要删除下面jar包:
org.apache.hadoop hadoop-mapreduce-client-core${hadoop.version}
排除法找到的问题,原理实在是不知道,欢迎大佬留言!



