我有一堆错误试图连接GW到PostgreSQL。我尝试过对其中的数据库-config.xml进行很多更改:
<database
autoupgrade="full"
name="BillingCenterDatabase"
dbtype="postgresql">
<dbcp-connection-pool
jdbc-url="jdbc:postgresql://localhost/test?user=postgres&password=qwerty;"/>它给了我较少的错误,但我仍然无法连接。
[Fatal Error] :25:72: The reference to entity "password" must end with the ';' delimiter.它假装我不得不用分号代替
password;=qwerty如果我把它放在这里,我得到了一个错误:实体“密码”被引用,但没有声明。全球妇女联合会对psql的建议是:
Expected: jdbc:postgresql://<host>[:<port>]/<dbname>?user=<user>&password=<password>也许一些有经验的人会帮我?
发布于 2022-07-23 18:23:02
连接字符串中的符号和&必须由内置实体&表示,如下所示:
jdbc-url="jdbc:postgresql://localhost/test?user=postgres&password=qwerty;"否则,XML-parser将试图将以下单词(此处为password)解释为必须由;终止的实体。这就解释了错误信息的误导性。
https://stackoverflow.com/questions/73082345
复制相似问题