我知道struts2的通配方法
可以用
<action name="*_*" class="{1}{2}Bean" method="{2}">
<result name="success" type="redirect">userList.action</result>
</action>
我是用spring的来监听,这边的class是送到spring的bean
这样的话
对于每个bean的name都需要配置..我觉得好麻烦
有没有什么通配的方法...在applicationContent.xml里
可以用
<action name="*_*" class="{1}{2}Bean" method="{2}">
<result name="success" type="redirect">userList.action</result>
</action>
我是用spring的来监听,这边的class是送到spring的bean
这样的话
对于每个bean的name都需要配置..我觉得好麻烦
有没有什么通配的方法...在applicationContent.xml里
<bean name="listUserBean" class="org.ethip.catalog.web.UserAction"
scope="prototype">
<property name="service">
<ref bean="UserService" />
</property>
</bean>
如果每次都配...好麻烦...
有没有通配的方法``