springboot加载过滤器动态控制开关

项目加载过滤器后  想要通过配置文件 来动态控制过滤器是否加载  需通过registrationBean.setEnabled(false)方法实现 如图所示   false 为关闭  true为开启  默认true
相关文章
相关标签/搜索