Spring Boot & Swagger UI. Set JWT token

前端 未结 4 1198
隐瞒了意图╮
隐瞒了意图╮ 2020-12-23 14:57

I have a Swagger config like this

@EnableSwagger2
@Configuration
public class SwaggerConfig {
    @Bean
    public Docket api() {
        List

        
4条回答
  •  情话喂你
    2020-12-23 15:18

    Your code is correct.

    There is a bug in springfox-swagger-ui/springfox-swagger2 version 2.8.0 and it seems 2.9.2 as well. I suspect you are using a version effected by this bug.

    I simply downgraded to 2.7.0 and it worked perfectly.

提交回复
热议问题