operator does not exist: uuid = character varying 解决办法

是pg的问题

operator does not exist: uuid = character varying
Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.

Please test if setting database option stringtype=unspecified works. 

意思就是说在 jdbc url 中加上配置 &stringtype=unspecified,示例如下:

<datasource.driverclassname>org.postgresql.Driver</datasource.driverclassname>
<datasource.url>jdbc:postgresql://xxx.xxx.xxx.xxx:xxx/db?currentSchema=xxx&amp;stringtype=unspecified</datasource.url>

猜你喜欢

转载自blog.csdn.net/londa/article/details/109073570