2

After following @Zagrebin-Victor advice, I have a Spring MVC project running OpenAPI 3 (springdoc-openapi-1.5.3)

Following this FAQ I defined this on a property file:

springdoc.swagger-ui.disable-swagger-default-url=true

So no "Petstore API" is loaded by default.

Now, I would like to configure some of the properties documented on Swagger-ui configuration web ("urls" property, for example). And that is the problem, I can not figure out how to configure the project

Not working if property put on:

  1. "src/main/resources/application.properies" (though my application is not a Spring Boot one)
  2. "src/main/resources/swagger-config.yaml"
  3. Neither putting it as environment variable by code (ugly solution)

I found, and tried, another property notation as documented on this GitHub thread. But no luck

Any idea?

Thank you very much

P.S: I do not want to configure swagger-ui putting parameters on the URL

floss.dev
  • 71
  • 5

0 Answers0