Answers for "Spring boot enable openapi swagger accessed"

0

Spring boot enable openapi swagger accessed

@Configuration
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {

    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring().antMatchers("/v2/api-docs",
                                   "/configuration/ui",
                                   "/swagger-resources/**",
                                   "/configuration/security",
                                   "/swagger-ui.html",
                                   "/webjars/**");
    }

}
Posted by: Guest on June-03-2021

Code answers related to "Spring boot enable openapi swagger accessed"

Browse Popular Code Answers by Language