方法一 https://blog.didispace.com/spring-boot-learning-21-2-2/ 方法二 Spring Boot 2.x基础教程:使用SpringFox 3生成Swagger文档 | 程序猿DD