spring security 问题,获取不到用户信息
nhy520
2009-05-26
如题:spring security 问题,获取不到用户信息
而能打印出以下信息: Authentication event AuthenticationSuccessEvent: test777; details: org.springframework.security.ui.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: 46399F4EF5621F5F9E37D3F9D1051812 WARN - Authentication event InteractiveAuthenticationSuccessEvent: test777; details: org.springframework.security.ui.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: 46399F4EF5621F5F9E37D3F9D1051812 但是:SecurityContextHolder.getContext().getAuthentication().getPrincipal()得不用户信息 跟踪:authentication 为null |
|
tasguocheng
2011-05-05
后来怎么解决的
|
|
jjk_02027
2011-05-27
时有时没有
|
|
szcs10138456
2011-06-16
应该是你的过滤器顺序问题,security的过滤器应该放最前面
|