This error is caused by a rogue '&' in database_properties.xml. This xml tag...
错误的配置:
正确的配置:
This is because the sax xml parsing libraries used by jwnl are generic xml libraries and therefore expect an escaped charcter sequence.
<param name="url" value="jdbc:mysql://129.12.16.16/jwnl?user=myusername&password=mypassword"/>
正确的配置:
<param name="url" value="jdbc:mysql://129.12.16.16/jwnl?user=myusername&password=mypassword"/>
This is because the sax xml parsing libraries used by jwnl are generic xml libraries and therefore expect an escaped charcter sequence.
本文解决了一个由XML文件中未正确转义的特殊字符导致的问题。具体来说,在database_properties.xml文件内的URL参数中,‘&’符号没有被正确地转义为‘&’,这会导致SAX XML解析库无法正确解析该文件。文章提供了错误配置与正确配置的对比。

被折叠的 条评论
为什么被折叠?



