jiangping
2025-02-14 c185de12314b8733f23ed7856e6d1e87ee95c1ca
server/web/src/main/java/com/doumee/config/swagger/SwaggerConfig.java
@@ -64,6 +64,19 @@
                .build()
                .globalOperationParameters(this.getParameterList());
    }
    @Bean
    public Docket getDocket4() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(this.getApiInfo()).groupName("【JTT808接口API】")
                .host(host)
                .select()
                .apis( basePackage("com.doumee.jtt808.web"))
                // 设置需要被扫描的类,这里设置为添加了@Api注解的类
//                .apis(RequestHandlerSelectors.withClassAnnotation(Api.class))
                .paths(PathSelectors.any())
                .build()
                .globalOperationParameters(this.getParameterList());
    }
    private List<Parameter> getParameterList() {
        ParameterBuilder tokenPar = new ParameterBuilder();