org.hibernate.DuplicateMappingException: Duplicate collection role mapping

使用hibernate时遇到该错误,后来排查原因,是因为hibernate的属性mapperResource,在hibernate.cfg.xml以及spring中进行了重复配置,去掉其中一个,错误解决。

posted @ 2016-05-31 17:15  ycblus  阅读(1370)  评论(0编辑  收藏  举报