严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service' defined in class path resource [beans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'service' of bean class [com.bjlz.action.LCsiveAction]: Bean property 'service' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
省略号,
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'service' of bean class [com.bjlz.action.LCsiveAction]: Bean property 'service' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
配置文件,
谢谢各位了 。。我找到了是少个了JAR包 导致的。。。
com.bjlz.action.LCsiveAction中需要增加setService方法
把service方法改成setLzComprehensiveDao试下?或者你用的是那个版本的spring。直接在service的定义上面加上annotation。@Resource(name = "comprehdao")
看下applicationcontent.xml的配置是否正确