我有一個問題與booking-faces示例有關,彈簧參數爲 security intercept-url pattern="/secure"
什麼是映射?,其中配置爲/secure
。 thnks。示例預訂面孔攔截url模式=「/安全」
回答
SpringSecurity幫助解決了Java EE應用程序的安全問題,如here所述。下面 配置意味着,在您的應用程序的任何URL開始secure
訪問該用戶應該有ROLE_SUPERVISOR
許可
<security:intercept-url pattern="/secure" method="POST" access="hasRole('ROLE_SUPERVISOR')"/>
根據您可以使用以下用戶登錄的配置(他們有ROLE_SUPERVISOR
許可)
keith/melbourne
erwin/leuven
新增
SpringSecurity在Web.xml中由FILT配置呃,它inercepts所有網址:
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
所有SpringSecurity是在SpringSecurity配置文件中配置像this
您可以在文件中找到的模式/secure
:<security:intercept-url pattern="/secure" ...
Thinks for answer,我知道這是,但如果您查看web.xml中的頁面是通過/ spring/
SpringSecurity在由濾波器web.xml中配置和它inercepts所有網址:'<濾波器映射>
答案已更新 – Michael 2013-05-14 09:32:32
- 1. 秩序的春季安全攔截的URL模式
- 2. 春季安全:攔截的URL模式訪問=「#ID == 1
- 3. 春季安全攔截的URL模式是行不通的#
- 4. Spring攔截URL模式
- 5. 動態修改spring安全攔截URL
- 6. 攔截客戶端的安全URL
- 7. 在Spring安全中使用攔截url
- 8. Spring安全性 - 攔截url映射
- 9. REST URL的攔截URL模式
- 10. Spring Security 3.0攔截url訂購
- 11. 春季安全3攔截網址模式索引
- 12. 春季安全來攔截攔截後恢復用戶名
- 13. IE攔截URL
- 14. UIWebView URL攔截
- 15. 調試攔截器模式
- 16. 春季安全攔截的URL不工作的單頁應用
- 17. 春季安全攔截的URL根和登錄
- 18. 爲什麼春季安全攔截的URL爲了此事
- 19. 春季安全不會對攔截的URL
- 20. 春季安全HTTPS攔截的URL訪問
- 21. 春季安全環境的具體攔截的URL
- 22. 無限循環,同時解決了攔截url春季安全
- 23. 春季安全網址攔截
- 24. 春季安全不攔截請求
- 25. 春季安全攔截commandButton動作
- 26. Weceem安全規則攔截器
- 27. 彈簧安全攔截錯誤密碼
- 28. 攔截錯誤並訂閱
- 29. 攔截單實例
- 30. 內容安全策略:該頁面的設置攔截資源
你想我會澄清我的答案更好? – Michael 2013-05-23 13:50:48