摘要: 创建数据库 添加postgis扩展,使之成为支持空间类型的空间数据库 create extension postgis 字段设置为geometry类型 插入空间数据 insert into test(id,shape) values(1,point(12.32232442,43.2324535):: 阅读全文
posted @ 2020-10-31 00:04 知识追求者 阅读(1638) 评论(0) 推荐(0) 编辑
摘要: 函数:string_agg(rid||'' , ',') SQL:SELECT string_agg(rid||'' , ','),year FROM tdfwzs_jbxx GROUP BY year; 阅读全文
posted @ 2020-10-30 23:25 知识追求者 阅读(1395) 评论(0) 推荐(0) 编辑
摘要: 由于Mybatis plus默认的更新策略是NOT_NULL:非 NULL;即通过接口更新数据时数据为NULL值时将不更新进数据库。 所以Mybatis plus通过updateById(XX)更新数据,当用户有更新字段为空字符串 或者 null 的需求时,需要对 FieldStrategy 策略进 阅读全文
posted @ 2020-03-16 22:52 知识追求者 阅读(2312) 评论(0) 推荐(0) 编辑
摘要: 在pom.xml中引入mybatis plus的jar包 在resources/application.yml配置文件中配置数据库 创建BaseEntity实体类 创建User实体类 创建UserMapper 创建UserService 创建UserServiceImpl 创建UserControl 阅读全文
posted @ 2020-03-16 22:50 知识追求者 阅读(3683) 评论(0) 推荐(1) 编辑
摘要: apollo参数信息 在pom.xml中添加依赖包 修改application.yml以apollo配置参数启动 apollo参数配置信息 在springboot启动类开启Apollo配置,添加注解 创建controller测试Apollo 启动springboot项目,打开浏览器访问 "http: 阅读全文
posted @ 2020-03-15 18:54 知识追求者 阅读(4996) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/997646/202003/997646-20200315174505145-1873369843.png) ![](https://img2020.cnblogs.com/blog/997646/202003/997646-20200315174619162-1783011088.png) ![](https://img2 阅读全文
posted @ 2020-03-15 18:02 知识追求者 阅读(1513) 评论(0) 推荐(0) 编辑
摘要: Apollo默认部门有两个 如果想要增加自己的部门,只能通过数据库ApolloPortalDB修改表ServiceConfig中organizations 修改后退出重新登录,即可看到修改后的部门信息 阅读全文
posted @ 2020-03-15 17:30 知识追求者 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 下载Apollo "下载地址:https://pan.baidu.com/s/1lkdCQ8Z2LzAOQpxcg7xEsA" f1jz 打开demo.sh并创建数据库 在创建的两个数据库中分别执行sql文件 修改demo.sh数据库信息 在/usr/local/下创建apollo文件夹 cd /u 阅读全文
posted @ 2020-03-15 17:13 知识追求者 阅读(2000) 评论(0) 推荐(0) 编辑
摘要: 原因:这里用到了curl命令,是我的Ubuntu系统没有安装这个命令 查看是否安装curl命令,没有版本信息则没有安装 curl version 安装curl sudo apt get update sudo apt install curl 再次查看curl,则有对应的版本信息 阅读全文
posted @ 2020-03-15 17:04 知识追求者 阅读(1727) 评论(0) 推荐(0) 编辑
摘要: 使用spring.profiles.active来区分配置 以apollo配置参数启动时,在springboot启动类开启Apollo配置,添加注解 不使用apollo配置参数启动时,在springboot启动类注释或去掉注解 阅读全文
posted @ 2020-03-15 15:39 知识追求者 阅读(2189) 评论(0) 推荐(0) 编辑