0
votes

I have a springboot application with springfox swagger 2.9.2, for one of my microservice the swagger base url generated in the swagger docs is appending "/v2/api-docs" at the end, for seemingly no apparent reason.

enter image description here

Here is what my application properties file looks like

spring.profiles.active=dev
server.contextPath=/xxxxxxxxxxxx-enterprise/v2/sas
server.port=8070

I have a feeling I am missing something silly.

1

1 Answers

1
votes

Because this is the swagger service descriptions default path

From Springfox documentation: https://springfox.github.io/springfox/docs/snapshot/#customizing-the-swagger-endpoints

This can be customized by overriding "springfox.documentation.swagger.v2.path" property