【问题标题】:How to dynamicaly call void configure(HttpSecurity http) in Spring Security Framework如何在 Spring Security Framework 中动态调用 void configure(HttpSecurity http)
【发布时间】:2018-07-12 09:56:49
【问题描述】:

在 Spring Framework 中启动时应用所有 http 安全性。在运行时,我正在尝试为 Spring 安全性添加更多角色和用户。如何在运行时更新安全配置。

【问题讨论】:

    标签: spring spring-boot spring-security


    【解决方案1】:

    我认为与其在运行时更新安全配置,不如在启动时以更灵活的方式进行配置。对于您的用例,我认为最好选择Spring Security UserDetailsServiceThis is a tutorial link that might be helpful.

    【讨论】:

    • 感谢您的回答。我将按照教程进行操作。
    猜你喜欢
    • 2020-03-18
    • 2020-03-04
    • 2017-10-18
    • 2016-08-08
    • 2014-05-09
    • 2021-06-29
    • 2016-04-27
    • 1970-01-01
    • 2021-12-15
    相关资源
    最近更新 更多