首页 > Web开发 > 详细

SecurityMetadataSource does not support secure object class

时间:2015-02-12 14:13:59      阅读:683      评论:0      收藏:0      [点我收藏+]
Caused by: java.lang.IllegalArgumentException: SecurityMetadataSource does not support secure object class: class org.springframework.security.web.FilterInvocation
	at org.springframework.util.Assert.isTrue(Assert.java:65)
	at org.springframework.security.access.intercept.AbstractSecurityInterceptor.afterPropertiesSet(AbstractSecurityInterceptor.java:123)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
	... 46 more



出现这个错误,网上找了很久都没满意的答案,最后发现关键字应该为not support,


   

@Override

public boolean supports(Class<?> arg0) {

return false;

}

解决方法: supports中的false改为true

SecurityMetadataSource does not support secure object class

原文:http://5148737.blog.51cto.com/5138737/1613907

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!