Swagger UI being blocked by Spring Security
I am trying to implement spring security with JWT token, I am trying to achieve authentication with method level authorization My configuration looks like this SwaggerConfig.java @Configuration @PropertySource({“classpath:application.properties”}) @EnableSwagger2 @EnableWebMvc public class SwaggerConfiguration implements WebMvcConfigurer { @Autowired private Environment env; @Value(“${swagger.enable:false}”) private Boolean isEnabled; @Bean public Docket swaggerBean() { return new Docket(DocumentationType.SWAGGER_2) .enable(isEnabled) .select() .apis(RequestHandlerSelectors.basePackage(“com.my.packageapi.v1”)) … Read more