Untitled
unknown
plain_text
a year ago
727 B
9
Indexable
@Profile({Profiles.TEST, Profiles.LOCAL, Profiles.DEV})
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/swagger-ui/**").hasAnyRole(ROLE_SWAGGER)
.anyRequest()
.permitAll()
.and()
.formLogin();
return http.csrf().disable().build();
}
@Profile({Profiles.STG, Profiles.PRD})
@Bean
public SecurityFilterChain filterChainProduct(HttpSecurity http) throws Exception {
http.authorizeRequests()
.anyRequest()
.permitAll();
return http.csrf().disable().build();
}Editor is loading...
Leave a Comment