Could not obtain transaction-synchronized Session for current thread

今天搭建环境遇到此错误,特此记录!

解决方法:

  在web.xml中添加过滤器filter

  

 
	   SpringOpenSessionInViewFilter
	   org.springframework.orm.hibernate4.support.OpenSessionInViewFilter
	 
  
    SpringOpenSessionInViewFilter
    /*
  

  

你可能感兴趣的:(thread,exception)