[英]Unable to generate Swagger UI for Spring Boot + Spring Integration using Spring REST Docs & springfox 3.0.0-SNAPSHOT
I am trying to setup Swagger for a Spring Boot + Spring Integration Project (involving an inbound-gateway) using Spring REST Docs style and springfox 3.0.0-SNAPSHOT. 我正在尝试使用Spring REST Docs样式和springfox 3.0.0-SNAPSHOT为Spring Boot + Spring Integration Project(涉及入站网关)设置Swagger。
On following the instructions from https://github.com/springfox/springfox/tree/master/springfox-spring-integration-webmvc , I was able to generate the following snippets under target/generated-snippets/{my-end-point-id} : 按照https://github.com/springfox/springfox/tree/master/springfox-spring-integration-webmvc中的说明进行操作后,我能够在target / generation-snippets / {my-end-point下生成以下代码段-id} :
However, after this point, I am unable to create/generate the Swagger UI html in the packaged .war. 但是,在此之后,我无法在打包的.war中创建/生成Swagger UI html。 Is there any extra configuration/setup that is required for this?
是否需要任何其他配置/设置?
As recommended, Springfox version: 3.0.0-SNAPSHOT Other version details: Spring Boot: 2.1.2.RELEASE Spring Integration: 5.1.2.RELEASE Java: 8 Apache Tomcat: 9.0.14 Apache Maven: 3.6.0 根据建议,Springfox版本:3.0.0-SNAPSHOT其他版本详细信息:Spring引导:2.1.2.RELEASE Spring集成:5.1.2.RELEASE Java:8 Apache Tomcat:9.0.14 Apache Maven:3.6.0
Please note that I wasn't clear whether to include a separate Swagger Configuration class with the @EnableSwagger2 annotation so I omitted this in my project setup. 请注意,我不清楚是否要在@ EnableSwagger2批注中包含单独的Swagger Configuration类,因此在项目设置中省略了此类。
Any help will be greatly appreciated! 任何帮助将不胜感激!
Sincerely, Bharath 真诚的巴拉
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.