Browse Source

新增功能的增加和修改

chenweida 8 years ago
parent
commit
45cf17e05f

+ 4 - 0
common/common-swagger/pom.xml

@ -16,6 +16,10 @@
    <dependencies>
        <dependency>
            <groupId>com.yihu.jw</groupId>
            <artifactId>common-rest-model</artifactId>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>

+ 4 - 2
common/common-swagger/src/main/java/com/yihu/jw/config/SwaggerConfig.java

@ -1,5 +1,6 @@
package com.yihu.jw.config;
import com.yihu.jw.restmodel.base.BaseContants;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@ -26,14 +27,15 @@ public class SwaggerConfig {
                .pathMapping("/")
                .select()
                .paths(or(
                        regex("/patient/.*")))
                        regex("/patient/.*"),
                        regex("/"+ BaseContants.Function.api_common+"/.*")))
                .build()
                .apiInfo(publicApiInfo());
    }
    private ApiInfo publicApiInfo() {
        ApiInfo apiInfo = new ApiInfo("基卫2.0API",
                "基卫2.0API,提供健康档案服务。",
                "基卫2.0API,提供基础卫生相关服务。",
                "1.0",
                "No terms of service",
                "wenfujian@jkzl.com",