一般这种错误是缺少set方法,如:
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'securityMetadataSource' of bean class [com.basic.security.MyFilterSecurityInterceptor]: Bean property 'securityMetadataSource' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
是说在类com.basic.security.MyFilterSecurityInterceptor中缺少属性:securityMetadataSource的set方法.