hibernate mysql connection.url

 

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/PRJ_J2EE/PrjFlexJava/WebContent/WEB-INF/lib/activemq-all-5.14.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/PRJ_J2EE/PrjFlexJava/WebContent/WEB-INF/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2022-09-05 18:24:25,682  INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA
2022-09-05 18:24:25,688  INFO org.hibernate.cfg.Environment - hibernate.properties not found
2022-09-05 18:24:25,693  INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
2022-09-05 18:24:25,699  INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
2022-09-05 18:24:25,765  INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate_ehcache/hibernate.cfg.xml
2022-09-05 18:24:25,765  INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate_ehcache/hibernate.cfg.xml
2022-09-05 18:24:25,796 DEBUG org.hibernate.util.DTDEntityResolver - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
2022-09-05 18:24:25,797 DEBUG org.hibernate.util.DTDEntityResolver - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
2022-09-05 18:24:25,797 DEBUG org.hibernate.util.DTDEntityResolver - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
2022-09-05 18:24:25,853 ERROR org.hibernate.util.XMLHelper - Error parsing XML: /hibernate_ehcache/hibernate.cfg.xml(9) 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。
Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: /hibernate_ehcache/hibernate.cfg.xml
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1528)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
	at hibernate_ehcache.HibernateMySqlTest.save(HibernateMySqlTest.java:18)
	at hibernate_ehcache.HibernateMySqlTest.main(HibernateMySqlTest.java:53)
Caused by: org.dom4j.DocumentException: Error on line 9 of document  : 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。 Nested exception: 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。
	at org.dom4j.io.SAXReader.read(SAXReader.java:482)
	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1518)
	... 3 more

<property name="connection.url"><![CDATA[jdbc:mysql://192.168.1.2:3306/mysql?useUnicode=true&characterEncoding=gb2312&serverTimezone=GMT%2B8&useSSL=false]]></property>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值