因为刚学习Java Web和mysql,碰到了问题所以随手记录一下,以免忘记,没处寻找答案。
- 问题一:
对实体 “serverTimezone” 的引用必须以 ‘;’ 分隔符结尾。
十一月 01, 2019 5:33:32 下午 com.mchange.v2.c3p0.cfg.C3P0Config
警告: XML configuration disabled! Verify that standard XML libs are available.
org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 90; 对实体 “serverTimezone” 的引用必须以 ‘;’ 分隔符结尾。
解决方法:
将
改成jdbc:mysql://localhost:3306/jdbctest?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
jdbc:mysql://localhost:3306/jdbctest?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
- 问题二:
Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (10). Last acquisition attempt exception:
将
改成driverClass=“com.mysql.jdbc.Driver”;
driverClass=“com.mysql.cj.jdbc.Driver”;
以上两问题由于时间问题暂时做这样笔记,后面会详细完善,仅供参考!