Enable Swagger2 with Spring Boot

raviyasas

Ravi Yasas

Posted on May 10, 2020

Enable Swagger2 with Spring Boot

Swagger2

Swagger2 dependencies

Add these dependencies to your pom.xml file

Swagger configuration file

Now you can create the Swagger configuration file

Now you are ready. Your REST controllers are now available on Swagger 2. You can access the Swagger documentation via http://localhost:8090/swagger-ui.html You may change the port with the port your application is running.

You can find the complete code from my GitHub

💖 💪 🙅 🚩
raviyasas
Ravi Yasas

Posted on May 10, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Enable Swagger2 with Spring Boot