代码之家  ›  专栏  ›  技术社区  ›  Dejell

spring安全和jsf

  •  1
  • Dejell  · 技术社区  · 16 年前

    我正在jsf中开发一个spring安全应用程序。 登录表单很好。 但是,当我试图检索身份验证对象时,在以后的代码中,我总是以匿名的方式获取身份验证原则。

    我试着这样取: authentication auth=securityContextHolder.getContext().getAuthentication();

    1 回复  |  直到 16 年前
        1
  •  1
  •   Dejell    16 年前

    嘿!

    问题是我没有加上 到安全性中的http

    推荐文章