org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘api’ defined in class path resource [com/huacloud/common/swagger/SwaggerAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [springfox.documentation.spring.web.plugins.Docket]: Factory method ‘api’ threw exception; nested exception is java.lang.NullPointerException
包名加上
配置文件加上 解决
swagger:
enabled: true
base-package: com