caused By:java.lang.IllegalArgumentException:SecurityMetadataSource does not support secure object Class:class ORG.SPR Ingframework.security.web.FilterInvocationat 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) ... More
This error, the online search for a long time are not satisfied with the answer, and finally found that the keyword should not be support,
@Override
Public Boolean supports (class<?> arg0) {
return false;
}
Workaround: False in supports to true
Securitymetadatasource does not support secure object class