一個網站專案采用了springsecurity和thymeleaf
網站首頁地址為:http://localhost/index
網站后臺地址為:http://localhost/login
直接訪問http://localhost/index和后臺地址沒問題,當訪問類似http://localhost/index?xxid=udi932akkdz==&token=3990201993331這樣的url時會跳到http://localhost/login登錄頁,這里(外部)傳入的xxid和token我在網站里是不用做任何處理的
SpringSecurity過濾路徑我是放在這里的
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("不需要認證的資源路徑").permitAll();
}
上面這個地方應該怎么寫才能同時放行/index和/index?xxid=xxx&token=xxx
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/249234.html
標籤:Java EE
上一篇:二叉樹中序遍歷
