这是什么造成的?截取了部分保存的代码
1 警告: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#0': Cannot create inner bean 'cn.sxt.interceptor.LoginInterceptor#0' of type [cn.sxt.interceptor.LoginInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cn.sxt.interceptor.LoginInterceptor#0' defined in class path resource [mvc.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'allowedPass' of bean class [cn.sxt.interceptor.LoginInterceptor]: Bean property 'allowedPass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
2 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cn.sxt.interceptor.LoginInterceptor#0' defined in class path resource [mvc.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'allowedPass' of bean class [cn.sxt.interceptor.LoginInterceptor]: Bean property 'allowedPass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
3 Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'allowedPass' of bean class [cn.sxt.interceptor.LoginInterceptor]: Bean property 'allowedPass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
4 严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#0': Cannot create inner bean 'cn.sxt.interceptor.LoginInterceptor#0' of type [cn.sxt.interceptor.LoginInterceptor] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cn.sxt.interceptor.LoginInterceptor#0' defined in class path resource [mvc.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'allowedPass' of bean class [cn.sxt.interceptor.LoginInterceptor]: Bean property 'allowedPass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
5 严重: StandardWrapper.Throwable
6 严重: Servlet /login threw load() exception
Bean property 'allowedPass' is not writable or has an invalid setter method
这个提示,估计属性没有set方法吧
Bean property 'allowedPass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
bean属性“allowedpass”不可写或具有无效的setter方法。setter的参数类型是否与getter的返回类型匹配?