postgresql + mybatis 使用中需要注意的问题

1.mybatis是完全支持postgresql的。包括空间查询。

<dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <scope>runtime</scope>
        </dependency>

2.通过mybatis来操作postgresql时,需要注意的是:postgresql的数据库表统一用小写表示,如果是大写,postgresql支持的sql语句中,表名需要增加引号,导致mybatis默认语句错误。提示表对象不存在。

3.mybatis本身可以支持空间操作,为了方便,我个人使用的是配合xml进行空间查询语句编写

4.推荐学习:https://blog.csdn.net/weixin_36832313/article/details/80111919(mybatis编写的空间查询)

posted @ 2023-07-17 20:10  成神之路~  阅读(584)  评论(0编辑  收藏  举报