org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiDocumentationScanner' defined in URL [jar:file:/C:/Users/xxxx/.m2/repository/io/springfox/springfox-spring-web/3.0.0/springfox-spring-web-3.0.0.jar!/springfox/documentation/spring/web/scanners/ApiDocumentationScanner.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.schema.property.ModelSpecificationFactory]: No default constructor found; nested exception is java.lang.NoSuchMethodException: springfox.documentation.schema.property.ModelSpecificationFactory.()
经过验证发现testable.version>0.6.5时与swagger3集成,Test用例执行就会报错:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiDocumentationScanner' defined in URL [jar:file:/C:/Users/xxxx/.m2/repository/io/springfox/springfox-spring-web/3.0.0/springfox-spring-web-3.0.0.jar!/springfox/documentation/spring/web/scanners/ApiDocumentationScanner.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.schema.property.ModelSpecificationFactory]: No default constructor found; nested exception is java.lang.NoSuchMethodException: springfox.documentation.schema.property.ModelSpecificationFactory.()