hibernate问题

问题1:

org.xml.sax.SAXParseException: cvc-id.2: There are multiple occurrences of ID value 'testDAO'.

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)

at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)

Truncated. see log file for complete stacktrace

 

问题根源在spring配置文件中有2个bean的ID名称是相同的。

你可能感兴趣的:(Hibernate,exception)