ssh拦截器配置

<!-- struts+spring配置第一步 :配置插件-注意位置- struts-config.xml文件中>
<!--我的applicationContext.xml习惯放在src目录下-->
[quote] <plug-in
className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="classpath:applicationContext.xml"
/>
</plug-in>[/quote]
<!-- struts+spring配置第二步 --struts-config.xml文件中>
<!-- 方式1 修改action的type属性如下:-->
[quote]<!-- <action name="fwxxForm" path="/fwxx" parameter="operate"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="list" path="/list.jsp" />
<forward name="detail" path="/detail.jsp" />
<forward name="modify" path="/modify.jsp" />
<forward name="error" path="/error.jsp" />
</action> [/quote] -->
<!--方式2 配置拦截器(注意位置,必须放在</action-mappings>后<message-resources>前)-->
[quote]<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"/>[/quote]
<!-- struts+spring配置第三步 --spring的配置文件中>
[quote]<bean name="/modify" class="com.aptech.jb.action.FWXXModifyAction"
abstract="false" singleton="true" lazy-init="default"
autowire="default" dependency-check="default">
<property name="fwxxProcess">
<ref bean="fwxxProcess" />
</property>
</bean>[/quote]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值