lmngn23
lmngn23

Reputation: 521

What's the relative path of springdoc.swagger-ui.url?

I'm trying to serve yml files on Swagger UI using springdoc, on the documentation here it says to specify the file likespringdoc.swagger-ui.url=/api-docs.yaml, however, let's say I have those yml files in the main java folder, what value should springdoc.swagger-ui.url receive?

Thank you.

Upvotes: 1

Views: 3335

Answers (1)

brianbro
brianbro

Reputation: 4809

You should make sure your api-docs.yaml is located to in your static folder.

The standard spring configuration for static resources is:

  • src/main/resrouces/static

Upvotes: 1

Related Questions