[
https://issues.apache.org/jira/browse/CXF-7040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15465275#comment-15465275
]
Sergey Beryozkin commented on CXF-7040:
---------------------------------------
I've just rerun a CXF spring_boot demo and I see Swagger UI auto-linking
working just fine.
https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/spring_boot
What is different in your case as far as the project setup is concerned ?
> Swagger UI Feature's resource root is incorrect for executable JAR/WAR
> ----------------------------------------------------------------------
>
> Key: CXF-7040
> URL: https://issues.apache.org/jira/browse/CXF-7040
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.1.7
> Reporter: Alexander K.
>
> In case of executable JAR/WAR file created by Spring Boot with embedded
> Tomcat, URL ends with "!/".
> Hence in {{AbstractSwaggerFeature.checkSwaggerUiResourceRoot()}} the
> condition {{urlStr.toString().endsWith(".jar")}} is incorrect since it should
> consider the trailing "!/" as well.
> This makes incorrect {{SWAGGER_UI_RESOURCE_ROOT}} value.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)