ServletConfigInterceptor 总结

本文介绍了一种拦截器,它能够根据Action实现的接口自动设置Action所需的属性。例如,如果Action实现了ParameterAware接口,则会将Action上下文的参数映射设置到Action上。此拦截器支持多种接口,包括ServletContextAware、ServletRequestAware等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

An interceptor which sets action properties based on the interfaces an action implements. For example, if the action implements ParameterAware then the action context's parameter map will be set on it.

This interceptor is designed to set all properties an action needs if it's aware of servlet parameters, the servlet context, the session, etc. Interfaces that it supports are:

 这个连接器是用来设置参数的

自己的action继承了上面的几个接口,那么你所需的参数就会被设置到你的action中

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值