Link Search Menu Expand Document

Swagger

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:

Tips

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

@EnableSwagger2

The import is this:

import springfox.documentation.swagger2.annotations.EnableSwagger2;

Table of contents