Springboot + Mybatis 操作 PostgreSQl 中的Jsonp类型
在网上翻了好多资料,刚开始试网上的方法的是有一个 PGobject类始终 引用不到。这个时候需要更改pom文件
注释掉下面那一行刷新maven就可以找到了。
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<!-- <scope>runtime</scope>-->
</dependency>
新增typeHandler
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;
import org