最近是真的烦,从未接触过ssh框架项目,并且也基本一年没做java开发了,从上手到开发,几个星期以来,问题不断,但是最后还是能一一解决,佩服我自己,这段时间就分享一下我做ssh框架项目开发遇到的问题吧
做完配置好action路径,今天就报了这样的错:
org.springframework.beans.NotWritablePropertyExcep tion:Bean property 'SysUserService' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
通过代码报错,不难发现,是我们的java 文件写的有问题,缺少set,get方法,于是,我将server层,action层,都加了get,set方法
同时,也要注意,在context配置文件中,那些bean的name配置,也要和set get名称一样
完美解决