问题描述
直接粘代码吧applicationContext.xml 写道
解决方案
把struts2的action交给spring,然后在里面实现注入
解决方案二:
少了action注入playerAction为struts.xml里面的class<bean id="playerAction" class="xxxxxx.PlayerAction"><property name="playerService" ref="playerService"></property></bean>
时间: 2024-04-21 22:50:26