Swagger UI is not rendering on the browser
Background
I was going to document my Dog REST API with these two dependencies for Swagger
:
1 | <dependency> |
Problem
When I tried to load the Swagger UI
by navigating to http://localhost:8080/swagger-ui.html, the following error was displayed on the browser:

What’s wrong
From Swagger 3.0
, we don’t need to add those two dependencies into the build tool. springfox-boot-starter
should be added instead.
Solution
Replace those two dependencies with springfox-boot-starter
dependency:
1 | <dependency> |
References