springboot加載過濾器動態控制開關

項目加載過濾器後  想要通過配置文件 來動態控制過濾器是否加載  需通過registrationBean.setEnabled(false)方法實現 如圖所示   false 爲關閉  true爲開啓  默認true
相關文章
相關標籤/搜索