spring security3的一个小问题。----------------------------------在线等,加急急急急急急急急急急急急急急急急急急
Jucbt 2012-12-04 10:01:18 最近学spring security3,在百度文库里看了个据说是完整的例子,我按他的要求把东西都copy到myeclipse里面。
原文-----------http://wenku.baidu.com/view/29ca5f5e804d2b160b4ec0e1.html
往下拉到第八页的时候。。
public class MyInvocationSecurityMetadataSource implements
FilterInvocationSecurityMetadataSource {
private UrlMatcher urlMatcher = new AntUrlPathMatcher();//----------这里报错。
//注意,我例子中使用的是AntUrlPathMatcher这个path
// matcher来检查URL是否与资源定义匹配,事实上你还要用正则的方式来匹配,或者自己实现一个matcher。
上面注释是作者写的。
Multiple markers at this line
- UrlMatcher cannot be resolved to a type
- AntUrlPathMatcher cannot be resolved to //------------报错提示。