我使用java spring boot框架为我的项目创建REST api,我使用"springfox-swagger2 and springfox-swagger-ui"生成swagger文档 . 我能够使用url http://localhost:8080/swagger-ui.html查看我的文档 .

如何在不启动Web URL的情况下将swagger.json / spec.json生成到文件中?我打算使用这个json在同一个构建中创建客户端类 .