SSH struts2整合spring时: java.lang.NullPointerException 1.未在applicationContext.xml中配置 dao的注入 <bean id="productService" class="com.ssh.service.ProductService"> <property name="productDao" ref="productDao"></property> </bean> 2.在Action类中没有Service的set方法