日期:2014-05-17 浏览次数:20851 次
session.setAttribute("userHBM",user)
User user = (User)request.getSession().getAttribute("userHBM")
]] Root cause of ServletException. java.lang.ClassCastException: com.test.user.User cannot be cast to com.test.user.User
package com.test.user; public class User {}