为了账号安全,请及时绑定邮箱和手机立即绑定

configutation 创建错误

五月 02, 2016 7:31:41 下午 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {5.1.0.Final}

五月 02, 2016 7:31:41 下午 org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

五月 02, 2016 7:31:41 下午 org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

Exception in thread "main" java.lang.ClassCastException: com.sun.xml.internal.stream.events.EntityReferenceEvent cannot be cast to javax.xml.stream.events.Characters

at com.sun.xml.internal.stream.events.DummyEvent.asCharacters(Unknown Source)

at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXEventConnector.handleCharacters(Unknown Source)

at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXEventConnector.bridge(Unknown Source)

at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source)

at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source)

at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:126)

at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:65)

at org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlResource(ConfigLoader.java:57)

at org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure(StandardServiceRegistryBuilder.java:163)

at org.hibernate.cfg.Configuration.configure(Configuration.java:259)

at org.hibernate.cfg.Configuration.configure(Configuration.java:245)

at test.main(test.java:20)


正在回答

2 回答

亲吻这个问题解决了吗

0 回复 有任何疑惑可以回复我~

打错了吧,这些都是固定的语法,

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

configutation 创建错误

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信