The configuration of swagger3 is different from that of 2


1. Import dependency. Only one dependency can be imported in version 3.0.0


2. Configure swaggerconfig

package org. fh. config;

3. Swagger interception configuration

package org. fh. config;

4. Visit / swagger UI / index html

5. Interface description case

Annotate the processing class, such as

This work adoptsCC agreement, reprint must indicate the author and the link to this article