在springboot配置swagger过程中,idea显示spi这个package中的内容加载不到
cannot access springfox.documentation.spi.service.DocumentationPlugin
试过了多种方法都没有解决问题:
- 删除jar包, 重新下载
- 重启idea
- 更换swagger版本
最后的解决办法是,进入maven中该依赖的目录检查,发现该jar包为0B. 说明在idea中用maven下载该jar包有问题,于是手动从 https://repo.maven.apache.org/maven2/io/下载jar包替代之,问题解决。