swagger文档展示开发
This commit is contained in:
@@ -38,7 +38,7 @@ public class SwaggerProxyController {
|
||||
List<SwaggerDoc> docList = swaggerDocService.getSwaggerDocList();
|
||||
for (SwaggerDoc swaggerDoc : docList) {
|
||||
SwaggerResource resource = new SwaggerResource();
|
||||
resource.setLocation(swaggerDoc.getDocUrl());
|
||||
resource.setUrl("/doc-swagger/doc/content?id=" + swaggerDoc.getId());
|
||||
resource.setName(swaggerDoc.getName());
|
||||
resource.setSwaggerVersion("2.0");
|
||||
resourceList.add(resource);
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.lang.annotation.*;
|
||||
@Documented
|
||||
@Configuration
|
||||
@ComponentScan(basePackages = {
|
||||
"com.zyplayer.doc.swagger",
|
||||
"com.zyplayer.doc.swaggerplus",
|
||||
})
|
||||
public @interface EnableDocSwaggerPlus {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user