|
@ -22,8 +22,22 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
|
|
|
protected void configure(HttpSecurity http) throws Exception {
|
|
|
http.authorizeRequests()
|
|
|
.antMatchers("/metrics/**").permitAll()
|
|
|
.antMatchers("/health/**").permitAll()
|
|
|
.antMatchers("/env/**").permitAll()
|
|
|
.antMatchers("/dump/**").permitAll()
|
|
|
.antMatchers("/trace/**").permitAll()
|
|
|
.antMatchers("/mappings/**").permitAll()
|
|
|
.antMatchers("/actuator/**").permitAll()
|
|
|
.antMatchers("/beans/**").permitAll()
|
|
|
.antMatchers("/configprops/**").permitAll()
|
|
|
.antMatchers("/docs/**").permitAll()
|
|
|
.antMatchers("/info/**").permitAll()
|
|
|
.antMatchers("/configuration/**").permitAll()
|
|
|
.antMatchers("/jolokia/**").permitAll()
|
|
|
.anyRequest().authenticated()
|
|
|
.and()
|
|
|
.csrf().disable()
|
|
|
.formLogin().defaultSuccessUrl("/swagger-ui.html").failureUrl("/login") //登录成功之后的跳转
|
|
|
.permitAll()
|
|
|
.and()
|