報(bào)500錯(cuò)誤
我的action無論交給spring處理還是交給struts處理 都是500錯(cuò)誤。而且提示信息都是
HTTP Status 500 - Unable to instantiate Action, productAction, defined for 'product_save' in namespace '/'Error creating bean with name 'productAction' defined in URL [file:/D:/tts9/apache-tomcat-7.0.67/wtpwebapps/ssh/WEB-INF/classes/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'productService' of bean class [cn.muke.ssh.service.ProductService]: Bean property 'productService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
查了下 ,大概意思就是namespace="/"路徑下找不到對(duì)應(yīng)的action,可是我都配置了,心累
2018-02-28
class中應(yīng)該是 cn.muke.ssh.action.ProductAction
題外話:我的跳轉(zhuǎn)addProduct.jsp頁面也報(bào)錯(cuò)500,空指針異常???
2017-11-27