根据SpringBlade开发手册,进行了swagger配置,在Gateway模块增加bootstrap配置内容,具体如下:
blade: service: blade-auth: blade-auth blade-desk: blade-desk blade-system: blade-system blade-demo: blade-demo
- id: ${blade.service.blade-demo} uri: lb://${blade.service.blade-demo} predicates: - Path=/${blade.service.blade-demo}/**
另在SwaggerProvider里添加如下内容:
routeMap.put(AppConstant.APPLICATION_DEMO_NAME, "演示模块");
另在blade-demo里添加了api注解:
@Api(value = "用户测试", tags = "演示接口")
@ApiOperation(value = "详情", notes = "传入blog", position = 1)
重启后查询聚合文档,文档未聚合
扫一扫访问 Blade技术社区 移动端