Explorar el Código

swagger 引用修改

chenweida hace 7 años
padre
commit
8283479022

+ 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)