Caused by: org.springframework.beans.NotWritablePropertyException:
一般这种错误是缺少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方法.
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战
【推荐】博客园的心动:当一群程序员决定开源共建一个真诚相亲平台
【推荐】开源 Linux 服务器运维管理面板 1Panel V2 版本正式发布
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步