谨记:Url表只储存受保护的资源,不在表里的资源说明不受保护,任何人都可以访问1、MyFilterInvocationSecurityMetadataSource类判断该访问路径是否被保护@Component//用于设置受保护资源的权限信息的数据源publicclassMyFilterInvocationSecurityMetadataSourceimplementsFilterInvocationSecurityMetadataSource{@BeanpublicAntPathMatchergetAntPathMatcher(){returnnewAntPathMatcher();...
继续阅读 >