文章目錄
- 1.找到ShiroConfig.java文件
- 2.上述適用于get請求,post請求如何關閉?
1.找到ShiroConfig.java文件
修改代碼
// 原始代碼
filterChainDefinitionMap.put("/**", "user,kickout,onlineSession,syncOnlineSession,csrfValidateFilter");// 修改為
filterChainDefinitionMap.put("/", "authc");
filterChainDefinitionMap.put("/**", "anon");
圖示
2.上述適用于get請求,post請求如何關閉?
如圖所示,注釋了對應的注解就行了