问题描述:
开发Spring 时,抛出 org.springframework.beans.NotWritablePropertyException
异常。控制台信息显示发现是无法装配 某些 bean 相关的 property。
解决方案:
1. class 的 property 的第二个字母不能为大写。如将userName写为uS
erName。
2. class的property缺少setter方法。
3. setter方法中可能字母拼写错误。
问题描述:
开发Spring 时,抛出 org.springframework.beans.NotWritablePropertyException
异常。控制台信息显示发现是无法装配 某些 bean 相关的 property。
解决方案:
1. class 的 property 的第二个字母不能为大写。如将userName写为uS
erName。
2. class的property缺少setter方法。
3. setter方法中可能字母拼写错误。