DelegatingFilterProxy 配置
2023-04-18 14:39:46 时间
DelegatingFilterProxy 的filter-name对应的bean默认只能在applicationContext.xml中建立,如果想把filter-name这个bean配置到mvc的配置文件中,可以在web.xml中这么配置。
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<init-param>
<param-name>contextAttribute</param-name>
<param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring-mvc</param-value>
</init-param>
</filter>
spring-mvc是DispatcherServlet在web.xml中配置的servlet-name。
相关文章
- Web3中文|2023年ZK赛道有哪些参与机会?(附操作指南)
- 【小程序从0到1】模版与配置|数据绑定|事件绑定
- Android Studio卸载以及安装教程
- 【一包通刷】晶晨S905L3A/B_完美AI语音线刷包_打开ADB_ROOT权限
- 小程序分享给好友以及分享到朋友圈
- 小程序springboot食堂预约订餐系统毕业设计-附源码221554
- Mac下Go的安装与配置
- 代码随想录第四十二天|背包问题-二维dp、背包问题-一维dp、Leetcode416. 分割等和子集
- Mac 安装 nvm 教程
- 负载均衡使用
- C语言总结
- 【小程序项目开发-- 京东商城】uni-app之商品列表页面 (下)
- mac抓包工具Charles使用详细教程(图文)
- 你真的会解决android ANR 问题吗?
- 122.(leaflet篇)leaflet地图图片之间存在缝隙
- 利用adb卸载手机预装软件(系统软件)
- 【AndroidStudio开发】(三)经典蓝牙+BLE蓝牙搜索
- Mac中git ssh配置
- Linux系统stat命令讲解
- 项目管理证书 PMP 考试费用要多少?