update 更新 Admin 监控 注释 避免错误使用

feature/model
疯狂的狮子li 3 years ago
parent 3401f38edc
commit 29163a41c2

@ -9,9 +9,9 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
import org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler; import org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler;
/** /**
* spring security * admin
* *
* @author ruoyi * @author Lion Li
*/ */
@Configuration @Configuration
@EnableWebSecurity @EnableWebSecurity
@ -29,7 +29,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
SavedRequestAwareAuthenticationSuccessHandler successHandler = new SavedRequestAwareAuthenticationSuccessHandler(); SavedRequestAwareAuthenticationSuccessHandler successHandler = new SavedRequestAwareAuthenticationSuccessHandler();
successHandler.setTargetUrlParameter("redirectTo"); successHandler.setTargetUrlParameter("redirectTo");
successHandler.setDefaultTargetUrl(adminContextPath + "/"); successHandler.setDefaultTargetUrl(adminContextPath + "/");
// admin监控 用户鉴权
httpSecurity.authorizeRequests() httpSecurity.authorizeRequests()
//授予对所有静态资产和登录页面的公共访问权限。 //授予对所有静态资产和登录页面的公共访问权限。
.antMatchers(adminContextPath + "/assets/**").permitAll() .antMatchers(adminContextPath + "/assets/**").permitAll()

Loading…
Cancel
Save