could not obtain transaction-synchronized 原因:配置文件没配好,spring3整合hibernate4时,事务要交给spring管理,才能使用currentSession 不使用注解情况下,要在spring配置文件中配置自动事务