I'm trying to get swagger to run in my spring boot project. I'm currently using the spring verion 3.1.9. I looked up so many guides that told me to just add implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0" to my build.gradle file and then everything works! Wrong! It doesn't. I get this White label error page every time:white label error page
- I tried every URL.
- I configured springdoc in the
build.gradlewith some custom urls. - I tried it with the old swagger dependencies
What I haven't tried is Spring-Security. But I don't want/need to use it.
I don't know your configuration.
Let me give you a sample configuration which is working as expected for me
Swagger Configuration Class
In Application Properites
Below property may be used when you need to proxy
I am able to see swagger is loading in below URL : http://localhost:8080/swagger-ui/index.html