您好,我正在对所有模型类使用 hibernate hbm 文件。现在我需要审核该类的详细信息。我尝试使用休眠模式。我创建了一个带有 @Audited
注释的新类。然后我用我的新类和 Envers 配置来配置我的 hibernate.cfg.xml
,例如 > 等。
当我启动 apache 时,我得到了
设置 bean 属性“sessionFactory”时无法解析对 bean“sessionFactory”的引用;嵌套异常是 org.springframework.beans.factory.BeanCreationException:创建文件中定义的名为“sessionFactory”的 bean 时出错
我对 hibernate envers 很陌生...我用谷歌搜索了它...但我无法理解...
谁能帮我如何解决它...
提前致谢
Hi here i am using hibernate hbm file to all model class. Now I need to audit the details of that class. I tried to use hibernate envers. I had created a new class with @Audited
annotation . Then i cofigured my hibernate.cfg.xml
with my new class and Envers Configuration like <listener class="org.hibernate.envers.event.AuditEventListener" type="post-insert"/
>,etc.
While I start apache I got the
Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file
I am very new to hibernate envers... I googled it... but I could not understand...
can anyone help me how reslove it...
Thanks in Advance
发布评论
评论(1)
设置
的日志记录org.hibernate
类别中,有一些东西阻止了SessionFactory
的创建,原因可能在日志中。Setup logging for the
org.hibernate
category, there is something preventing theSessionFactory
from being created and the cause is probably in the logs.