草庐IT

customRevisionEntity

全部标签

java - 如何从 customRevisionEntity 检索用户名

我们正在使用Hibernate-envers3.6.3.Final,我正在使用@Audited注释正确生成表格。我正在使用CustomRevisionEntity来存储用户信息,而CustomRevisionListenner也存储用户信息。但是如果我试图检索“用户名”,它会返回以下错误。org.hibernate.HibernateException:NoHibernateSessionboundtothread,andconfigurationdoesnotallowcreationofnon-transactionalonehereatorg.springframework.or