我的login方法没问题 我写过测试类测试


下面是我的过滤器===============================================

------解决思路----------------------
配置文件中应将hibernate.current_session_context_class设为org.springframework.orm.hibernate3.SpringSessionContext
------解决思路----------------------
spring已经提供OpenSessionInViewFilter ,直接用它的,自己写可能没有考虑那么全。