HttpSession session = SessionUtils.getSession();
Enumeration<String> attrs = session.getAttributeNames();
while(attrs.hasMoreElements()){
String name = attrs.nextElement().toString();
Object vakue = session.getAttribute(name);
System.out.println("------" + name + ":" + vakue +"-------\n");
}
public static HttpSession getSession()
{
return getRequest().getSession();
}
public static HttpServletRequest getRequest() {
ServletRequestAttributes attrs = (ServletRequestAttributes) RequestContextHolder
.getRequestAttributes();
return attrs.getRequest();
}