jiangping
2023-09-28 35baa39723180e0de2350b5b2287b1846dabaf58
server/platform/src/main/java/com/doumee/config/swagger/SwaggerConfig.java
ÎļþÃû´Ó server/src/main/java/com/doumee/config/swagger/SwaggerConfig.java ÐÞ¸Ä
@@ -46,11 +46,10 @@
                .version(version)
                .build();
    }
    @Bean
    public Docket getDocket() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(this.getApiInfo()).groupName("【管理端接口API】")
                .apiInfo(this.getApiInfo()).groupName("【系统管理接口API】")
                .host(host)
                .select()
                .apis( basePackage("com.doumee.api.system;com.doumee.api.business;"))
@@ -59,19 +58,17 @@
                .paths(PathSelectors.any())
                .build();
    }
    @Bean
    public Docket getDocket2() {
    public Docket getDocket1() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(this.getApiInfo()).groupName("【公共接口API】")
                .host(host)
                .select()
                .apis( basePackage("com.doumee.api.common"))
                // è®¾ç½®éœ€è¦è¢«æ‰«æçš„类,这里设置为添加了@Api注解的类
            .apiInfo(this.getApiInfo()).groupName("【公共接口API】")
            .host(host)
            .select()
            .apis( basePackage("com.doumee.api.common"))
            // è®¾ç½®éœ€è¦è¢«æ‰«æçš„类,这里设置为添加了@Api注解的类
//                .apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
                .paths(PathSelectors.any())
                .build();
            .paths(PathSelectors.any())
            .build();
    }
    /**
     * é‡å†™basePackage方法,使能够实现多包访问,复制贴上去