JDBCTemplate和MYSQL
我正在编写一个rest服务,我需要在mysql表中添加一些细节。
我的mysql表作为列area_json作为json类型。
我从rest服务中的pojo调用中获得了一个pojo对象,并尝试使用jdbctemplate插入它,如下所示
jdbcTemplate.update("insert into site(area_id,area_json) values(?,?)", area.getareaID(), area.getareaJson());使用post进行post调用后,我会得到以下错误
Invalid argument value: java.io.NotSerializableException;
nested exception is java.sql.SQLException: Invalid argument value: java.io.NotSerializableException"请帮帮忙
https://stackoverflow.com/questions/47894354
复制相似问题