Link Search Menu Expand Document


The backend of a Spring Boot web app can be documented using a package called Swagger.

Here are some resources that describe how this works:


For certain errors with implementing Swagger, the following fix may help.

In your main, i.e. the public static void main method that is annotated with @SpringBootApplication, add this annotation (as described in this Stack Overflow answer


The import is this:

import springfox.documentation.swagger2.annotations.EnableSwagger2;

Table of contents