[英]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>
也許一些有經驗的人可以幫助我?
連接字符串中的&
必須由內置實體&
表示。 像這樣:
jdbc-url="jdbc:postgresql://localhost/test?user=postgres&password=qwerty;"
否則XML
解析器將嘗試將以下單詞(此處為password
)解釋為必須由;
終止的實體。 . 這解釋了誤導性錯誤消息。
類似討論: https ://stackoverflow.com/a/3824422/18667225
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.