摘要: 分析用户配置文件结构 打开配置文件 /etc/clickhouse-server/users.xml <?xml version="1.0"?> <yandex> <profiles><!-- 类似于角色的作用,支持继承--> <default><!-- 自定义名称,默认角色--> <max_mem 阅读全文
posted @ 2021-04-27 13:31 正在路上的兔子 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 创建普通数据表 create table agg_source( id UInt8, name String, city String, money UInt32 )engine=MergeTree() partition by city order by id; 插入数据 insert into 阅读全文
posted @ 2021-04-27 13:29 正在路上的兔子 阅读(1053) 评论(0) 推荐(1) 编辑
摘要: 1. 登录页 文件目录 src/view/login/index.vue 登录方法 handleLogin() { this.$refs.loginForm.validate(valid => { if (valid) { this.loading = true // 调用的是 store/modu 阅读全文
posted @ 2020-12-01 11:58 正在路上的兔子 阅读(1318) 评论(0) 推荐(0) 编辑
摘要: 原因分析 Aop 配置类加载了两次 @Around 获取返回值操作不当 解决方法 配置类只需要加两个注解,其他地方无需修改 @Aspect @Component public class AopConfig {} 获取返回值的错误操作 // 错误版本 @Around("log()") public 阅读全文
posted @ 2020-10-15 13:38 正在路上的兔子 阅读(2801) 评论(1) 推荐(1) 编辑
摘要: 1.准备工作 idea 记得安装 lombok 插件 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> <de 阅读全文
posted @ 2020-09-04 09:20 正在路上的兔子 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 需求 查询某个索引的全部数据,用于导出 什么是 scroll 查询 scroll 查询 可以用来对 Elasticsearch 有效地执行大批量的文档查询,而又不用付出深度分页那种代价。 游标查询允许我们 先做查询初始化,然后再批量地拉取结果。 这有点儿像传统数据库中的 cursor 。 游标查询会 阅读全文
posted @ 2020-09-01 10:55 正在路上的兔子 阅读(2264) 评论(0) 推荐(0) 编辑
摘要: 准备 1.需要一个 json 数据数组,格式如下 [ { "screenWidth": 1280, "trackState": 1 }, { "screenWidth": 1280, "trackState": 1 }, { "screenWidth": 1280, "trackState": 1 阅读全文
posted @ 2020-08-21 17:01 正在路上的兔子 阅读(3478) 评论(0) 推荐(0) 编辑
摘要: 需求 在表格中用 select 选择数据并返回到后台 实现 所用扩展 码云链接 大佬已经介绍了如何使用,以下是我个人的使用记录 使用情况(代码并不是连贯的) layui.config({ base: '/static/layui/' }).extend({ tableEdit: 'tableEdit 阅读全文
posted @ 2020-08-14 17:15 正在路上的兔子 阅读(5511) 评论(0) 推荐(0) 编辑
摘要: 前言 今天交付 ES 管理平台,因为 ES 有两套集群,分别是5.x 和 6.x 为了代码的通用性,需要把 Transport Client 的相关操作全部废弃,改为直接调用 rest api 准备工作 <dependency> <groupId>org.apache.httpcomponents< 阅读全文
posted @ 2020-08-13 17:01 正在路上的兔子 阅读(2733) 评论(0) 推荐(0) 编辑
摘要: 一. springboot 整合 shiro 1. 引入依赖 <!-- shiro --> <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.4.1</v 阅读全文
posted @ 2020-08-11 14:35 正在路上的兔子 阅读(491) 评论(0) 推荐(0) 编辑