swagger设置全局token,解决接口需要token验证的问题
解决办法如下:@Configuration@EnableWebMvc@EnableSwagger2 public class SwaggerConfig {@Bean public Docket platformApi(){ return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).forCodeGeneration(true).select().api...