org.hibernate.DuplicateMappingException: Duplicate class/entity mapping
严重:Servlet.service()forservletServletcontrollerthrewexceptionorg.hibernate.DuplicateM...
严重: Servlet.service() for servlet Servletcontroller threw exception
org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.hxm.po.Address
at org.hibernate.cfg.Configuration$MappingsImpl.addClass(Configuration.java:3189)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:176)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:4003)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configuration.java:3995)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3983)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1436)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1894)
at com.hxm.util.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:10)
at com.hxm.dao.impl.AddressDaoImpl.saveAddress(AddressDaoImpl.java:16)
at com.hxm.controller.Servletcontroller.doGet(Servletcontroller.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
应该没有吧? 展开
org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.hxm.po.Address
at org.hibernate.cfg.Configuration$MappingsImpl.addClass(Configuration.java:3189)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:176)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:4003)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configuration.java:3995)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3983)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1436)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1894)
at com.hxm.util.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:10)
at com.hxm.dao.impl.AddressDaoImpl.saveAddress(AddressDaoImpl.java:16)
at com.hxm.controller.Servletcontroller.doGet(Servletcontroller.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
应该没有吧? 展开
1个回答
Storm代理
2023-08-29 广告
2023-08-29 广告
"StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,I...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询