SpringBoot+MyBatis操作Postgresql中Json数据类型
SpringBoot+MyBatis操作Postgresql中Json数据类型MyBatis中并没有原生json的jdbcType支持,只能通过自定义TypeHandler来实现转换假设这是我要存入数据库的json串:{"createtime":"2020-08-06T03:57:08.382Z","dataid":"727d2094-f6b3-4eee-a39b-7544c04105fc","schemaid":"ec9ebd79-d74d-4e0f-b026-9653006940f2"}格式化
原创
2020-08-06 17:39:35 ·
1925 阅读 ·
2 评论