报错的语句:Document document = builder.parse(new Proxool().getClass().getResourceAsStream("/proxool.xml"));
这是我的xml文件:
我就郁闷了,求指点~
jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=UTF-8
UTF-8改成utf8试试。
另外,如果不行,参照这个试试。具体我也不确定。
jdbc:mysql://127.0.0.1:3306/db?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8
看过配置没有问题,建议去掉第四行的空行。
自己写xml配置文件可能会无意识敲入特殊字符,建议重新找个标准模板再修改。