I\'m working on a Swagger (Web API) project.
When I first run the application it shows the Login page for Swagger UI.
So, a user first has to login to access Swagger UI
in my case, that is not swagger page but spring-security login page.
boot version 2.X includes security auto configuration, so if you add spring-security plugin in build.gradle, remove and restart.