繁体   English   中英

Guidewire postgresql 数据库连接

[英]Guidewire postgresql database connection

我在尝试将 GW 连接到 PostgreSQL 时遇到一堆错误。 我在 database-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

如果我把它放在这里,我有一个错误:实体“密码”被引用但未声明。 GW 对 psql 的建议是:

Expected: jdbc:postgresql://<host>[:<port>]/<dbname>?user=<user>&password=<password>

也许一些有经验的人可以帮助我?

连接字符串中的&必须由内置实体&amp;表示。 像这样:

jdbc-url="jdbc:postgresql://localhost/test?user=postgres&amp;password=qwerty;"

否则XML解析器将尝试将以下单词(此处为password )解释为必须由;终止的实体。 . 这解释了误导性错误消息。

类似讨论: https ://stackoverflow.com/a/3824422/18667225

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM