首页 > 应用开发 > > list注入遇到的问题
这是什么造成的?截取了部分保存的代码
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来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2231/viewspace-3142210/ ,如需转载,请注明出处,否则将追究法律责任。