|
@@ -34,6 +34,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
//授予对所有静态资产和登录页面的公共访问权限。
|
|
//授予对所有静态资产和登录页面的公共访问权限。
|
|
.antMatchers(adminContextPath + "/assets/**").permitAll()
|
|
.antMatchers(adminContextPath + "/assets/**").permitAll()
|
|
.antMatchers(adminContextPath + "/login").permitAll()
|
|
.antMatchers(adminContextPath + "/login").permitAll()
|
|
|
|
+ .antMatchers("/actuator").anonymous()
|
|
|
|
+ .antMatchers("/actuator/**").anonymous()
|
|
//必须对每个其他请求进行身份验证
|
|
//必须对每个其他请求进行身份验证
|
|
.anyRequest().authenticated().and()
|
|
.anyRequest().authenticated().and()
|
|
//配置登录和注销
|
|
//配置登录和注销
|