Spring, Hibernate Lazy Loading, sessionFactory, and OpenSessionInViewFilter

前端 未结 3 1059
天命终不由人
天命终不由人 2020-12-20 00:45

I am using Hibernate\'s lazy loading, and am getting sessionFactory missing exception, even after I have defined a filter in web.xml to use OpenSessionInViewFilter



        
3条回答
  •  情歌与酒
    2020-12-20 01:28

    You have to put sesstionFactory Bean in your servlet-context.xml

    
    
        .....
    
    
        ......
    
    
    

提交回复
热议问题