java hibernate在postgres数据库中保存数组字段的配置问题
java hibernate在postgres数据库中保存数组字段的配置问题
要保存到postgres过程中会出现data读取数据混乱,不是原来的数据
解决办法: www.zzzyk.com
修改postgres的postgresql.conf配置文件
bytea_output = 'escape' # hex, escape
或者
ALTER DATABASE database_name SET bytea_output TO 'escape';
意思是设置bytea_output的输出类型设置为转义类型输出,
而postgres默认是hex类型输出,所以导致转换数据混乱问题