소스 검색

swagger 引用修改

chenweida 7 년 전
부모
커밋
8283479022
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      svr/svr-iot/src/main/java/com/yihu/iot/config/SwaggerConfig.java

+ 4 - 4
svr/svr-iot/src/main/java/com/yihu/iot/config/SwaggerConfig.java

@ -63,11 +63,11 @@ public class SwaggerConfig {
     * @throws Exception
     */
    public static void main(String[] args) throws Exception {
        String groupName="system";
        // String groupName="iot";
        //String groupName="system";
         String groupName="iot";
        URL remoteSwaggerFile = new URL("http://127.0.0.1:8080//v2/api-docs?group="+groupName);
        Path outputFile = Paths.get("open-api/build/"+groupName);
        URL remoteSwaggerFile = new URL("http://127.0.0.1:10050//v2/api-docs?group="+groupName);
        Path outputFile = Paths.get("svr/svr-iot/build/"+groupName);
        Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder()
                .withMarkupLanguage(MarkupLanguage.ASCIIDOC)