已采納回答 / 王若山
<!-- https://mvnrepository.com/artifact/org.springframework/spring-core --><dependency>? ? <groupId>org.springframework</groupId>? ? <artifactId>spring-core</artifactId>? ? <version>4.3.7.RELEASE</version>&l...
2017-03-10
最新回答 / 抬頭就是陽光c
ProductAction的中名字,和application中bean的名字不一致,仔細檢查一下,我遇到的是productService.save(product);這里出了問題,解決方法是這里的productService一定要和xml文件中bean的id一樣,因為struts和spring整合過程中 按名稱 自動注入
2017-03-09
最新回答 / qq_滿天星_19
解決了嗎,同錯誤
已采納回答 / 王若山
看看你web.xml文件里面有沒有定位contextConfigLocation的位置以及action中有沒有為service提供set方法注入。