✨ Introducing new features. #2116 报表设计增加  spring security 安全控制

This commit is contained in:
lengleng committed 2020-12-07 11:50:15 +08:00
1 parent 011d25de6b
commit 3306d08819
1 file changed
+2 -2
@@ -44,8 +44,8 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
@SneakyThrows
protected void configure(HttpSecurity http) {
http.formLogin().loginPage("/login.html").loginProcessingUrl("/login").failureHandler(new LoginFailureHandler())
.and().authorizeRequests().antMatchers("/login.html", "/login").permitAll().anyRequest().authenticated()
.and().csrf().disable();
.and().authorizeRequests().antMatchers("/login.html", "/login", "/actuator/**").permitAll().anyRequest()
.authenticated().and().csrf().disable();
}
/**