org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'swagger2Controller': Unsatisfied dependency expressed through field 'mapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serviceModelToSwagger2MapperImpl': Unsatisfied dependency expressed through field 'securityMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityMapperImpl' defined in URL [jar:file:/C:/.../.m2/repository/io/springfox/springfox-swagger2/2.6.1/springfox-swagger2-2.6.1.jar!/springfox/documentation/swagger2/mappers/SecurityMapperImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.swagger2.mappers.SecurityMapperImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMapEntrySet
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serviceModelToSwagger2MapperImpl': Unsatisfied dependency expressed through field 'securityMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityMapperImpl' defined in URL [jar:file:/C:/.../.m2/repository/io/springfox/springfox-swagger2/2.6.1/springfox-swagger2-2.6.1.jar!/springfox/documentation/swagger2/mappers/SecurityMapperImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.swagger2.mappers.SecurityMapperImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMapEntrySet
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
used by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.swagger2.mappers.SecurityMapperImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMapEntrySet
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)
Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMapEntrySet
at java.lang.ClassLoader.defineClass1(Native Method)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableMapEntrySet
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Partager