Springboot通过创建RegistrationBean子类方式实现Filter、Servlet、Listener三大组件

参考链接:

https://blog.csdn.net/u010922732/article/details/91048683

在配置类中,FilterRegistrationBean,ServletRegistrationBean,ServletListenerRegistrationBean的注入
相当于javaweb中在web.xml中注册Filter,Servlet,Listener;

原文地址:https://www.cnblogs.com/donglaotao/p/14568984.html