资源简介

swaggerui 根据swagger json格式地址转换为word文档,。。

资源截图

代码片段和文件信息

package com.word.config;

import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.conn.ssl.TrustStrategy;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

import javax.net.ssl.SSLContext;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.X509Certificate;

/**
 * Created by XiuYin.Cui on 2018/6/21.
 */
@Configuration
public class JavaConfig {

    @Bean
    public RestTemplate restTemplate() throws KeyStoreException NoSuchAlgorithmException KeyManagementException {
        TrustStrategy acceptingTrustStrategy = (X509Certificate[] chain String authType) -> true;

        SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom()
                .loadTrustMaterial(null acceptingTrustStrategy)
                .build();

        SSLConnectionSocketFactory csf = new SSLConnectionSocketFactory(sslContext);

        CloseableHttpClient httpClient = HttpClients.custom()
                .setSSLSocketFactory(csf)
                .build();

        HttpComponentsClientHttpRequestFactory requestFactory =
                new HttpComponentsClientHttpRequestFactory();

        requestFactory.setHttpClient(httpClient);
        RestTemplate restTemplate = new RestTemplate(requestFactory);
        return restTemplate;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         13  2019-08-02 14:50  swagger-word文档生成程序\SwaggerToWord-master\.idea\.name

     文件        305  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\artifacts\SwaggerToWord_war.xml

     文件       4859  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\artifacts\SwaggerToWord_war_exploded.xml

     文件        653  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\compiler.xml

     文件        177  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\encodings.xml

     文件       1444  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\inspectionProfiles\Project_Default.xml

     文件        592  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xml

     文件        571  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xml

     文件        560  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__commons_codec_commons_codec_1_9.xml

     文件        582  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__commons_logging_commons_logging_1_2.xml

     文件        546  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__com_fasterxml_classmate_1_3_4.xml

     文件        668  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml

     文件        619  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml

     文件        647  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml

     文件        523  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__com_google_guava_guava_20_0.xml

     文件        577  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__io_springfox_springfox_core_2_8_0.xml

     文件        591  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__io_springfox_springfox_schema_2_8_0.xml

     文件        570  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__io_springfox_springfox_spi_2_8_0.xml

     文件        619  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__io_springfox_springfox_spring_web_2_8_0.xml

     文件        605  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__io_springfox_springfox_swagger2_2_8_0.xml

     文件        647  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__io_springfox_springfox_swagger_common_2_8_0.xml

     文件        611  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__io_swagger_swagger_annotations_1_5_14.xml

     文件        576  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__io_swagger_swagger_models_1_5_14.xml

     文件        576  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__javax_servlet_jsp_jsp_api_2_2_1_b03.xml

     文件        497  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__javax_servlet_jstl_1_2.xml

     文件        546  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__javax_servlet_servlet_api_2_5.xml

     文件        479  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__junit_junit_4_12.xml

     文件        553  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_7_9.xml

     文件        580  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__org_apache_commons_commons_lang3_3_5.xml

     文件        601  2019-08-02 14:51  swagger-word文档生成程序\SwaggerToWord-master\.idea\libraries\Maven__org_apache_httpcomponents_httpclient_4_5_3.xml

............此处省略160个文件信息

评论

共有 条评论