1

I would like to ask for your help regarding the following problem.

Unfortunately, the Swagger doesn't work, I get 404 page not found exception (http://localhost:8080/swagger-ui.html) when I use "spring.resources.static-locations" to specify the UI.

Does anybody face this problem? Could you help how I can manage this issue?

Thanks for your help in advance

josamiti
  • 65
  • 7

1 Answers1

0

If you are still dealing with this issue, I recommend this approach:

spring.mvc.static-path-pattern=/swagger*

I similarly had issues with using static-locations, but static-path-pattern allowed Swagger to work without disrupting my exception handling.

J. Marciano
  • 109
  • 4