在当前设置中,我使用 shiro.ini。
转向 Guice,为 FormAuthenticatorFilter (authc) 设置这些值的正确位置在哪里?
最佳答案
您可以通过以下方式绑定(bind)参数
bindConstant().annotatedWith(Names.named("shiro.<param>")).to(value)
来自您的Shiro(Web)Module
。
关于guice - Shiro Guice,在哪里可以设置 FormAuthenticationFilter 的 loginUrl、usernameParam、passwordParam 等?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10899150/