hibernate 的Junit Test测试出现错误,已下是出错内容
Transaction这个注解用错包了,要引用 hibernate中的 Transaction,而不是javax中的,把HibernateDemo 这个类中Transaction的import去掉,重新import