【问题标题】:I am using here Struts 2 and Spring Security Integration我在这里使用 Struts 2 和 Spring Security Integration
【发布时间】:2013-06-23 03:23:51
【问题描述】:

在spring security中成功登录后如何在jsp页面中打印用户名和姓:

sec:authentication property="principal.firstname" 和 sec:authentication property="principal.lastname"

【问题讨论】:

标签: java struts2 spring-security


【解决方案1】:

你应该使用你需要的属性来实现你自己的UserDetails

【讨论】:

  • 谢谢亚历克斯..你能详细解释一下吗,这样我就可以清楚地理解了。因为我对 Spring Security 很陌生..
  • @user2358480 查看类似问题:stackoverflow.com/questions/10607696/…
猜你喜欢
  • 1970-01-01
  • 2012-09-18
  • 2013-03-18
  • 1970-01-01
  • 2012-03-03
  • 1970-01-01
  • 2011-06-04
  • 2011-03-22
  • 2012-01-18
相关资源
最近更新 更多