单体、zuul、gateway集成swagger(亲测)
分三块介绍: 一、单体应用集成swagger 二、zuul网关集成swagger 三、gateway网关集成swagger集成spring security oauth2 标题单体应用集成swagger 一、pom添加坐标 < dependency > < groupId > com . spring4all < / groupId > < artifactId > swagger - spring - boot - starter < / artifactId > < version > 1.9 .1 . RELEASE < / version > < / dependency > 二、启动类加开启注解 @EnableSwagger2Doc 三、配置文件添加配置 server : port : 9001 swagger : base-package : com.funtl.myshop.plus.business title : SpringCloud2.x构建微服务电商项目 - 会员服务接口 description : 该项目“基于SpringCloud2.x构建微服务电商项目”由每特教育 | 蚂蚁课堂版权所有,未经过允许的情况下,私自分享视频和源码属于违法行为。 version : 1.1 terms-of-service-url : www.mayikt.com