一、bit_xor 1、头文件 #include <functional> 2、模板 template <class T> struct bit_xor; template <class T = void> struct bit_xor; 3、返回两个参数按位XOR的结果(公共成员函数) 4、使用 ...
分类:
其他好文 时间:
2021-04-20 15:10:43
阅读次数:
0
主键生成策略 @TabelID uuid 自增ID 雪花算法 mybatis-plus 的主键策略 package com.baomidou.mybatisplus.annotation; public enum IdType { AUTO(0), //数据库自增ID 记住表ID字段一定是自增的 N ...
分类:
其他好文 时间:
2021-04-20 15:05:56
阅读次数:
0
1.当前路由传递对象参数 (1)通过this.$router.push传递 var arr = JSON.stringify(this.user) this.$router.push({name:'home',params:{user:encodeURIComponent(arr)}}) this. ...
分类:
其他好文 时间:
2021-04-20 14:26:59
阅读次数:
0
思路:搭建环境-->导入Mybatis-->编写代码-->测试!### 2.1、搭建环境搭建数据库```javaCREATE DATABASE `mybatis`;USE `mybatis`;CREATE TABLE `user`( `id` INT(20) NOT NULL PRIMARY KEY ...
分类:
其他好文 时间:
2021-04-19 15:58:15
阅读次数:
0
##Socket函数 #include <sys/types.h> #include <sys/socket.h> int socket(int domain, int type, int protocol); domain 协议族: AF_OCAL, AF_INT, AF_INET7 type S ...
分类:
其他好文 时间:
2021-04-19 15:04:18
阅读次数:
0
一、设计模式六大原则 1.开闭原则:对扩展开放,对修改关闭,。 例子: course类里面有price字段,getPrice方法,如果想要打折促销,就需要改变price字段或者getPrice方法。 我们可以新建一个CourseCount类继承course类,里面的getPrice方法调用父类的ge ...
分类:
其他好文 时间:
2021-04-19 14:47:20
阅读次数:
0
ResorceBundle(资源绑定器) 绑定配置文件 jdbc.proprtise 需要在src目录下新建一个文件夹然后将jdbc.proprtise放在文件中然后右键该文件夹选择 Rebuild Config。 在引用该配置文件的时候不需要加后缀名。 代码 import java.sql.Con ...
分类:
数据库 时间:
2021-04-19 14:35:44
阅读次数:
0
clickhouse 在关联不上的情况会返回0值,而不是MySQL返回Null select * from (select 1 as a union all select 2 as a union all select 3 as a union all select 0 as a union all ...
分类:
数据库 时间:
2021-04-16 12:01:37
阅读次数:
0
##一、问题一 #1.问题: 重建表过程中,各节点在clickhouse上table已物理删除,因zk里仍存在该表的meta信息,导致再次创建该表create table xxx on cluster, 该节点无法创建表(其他节点创建表成功),报错:Replica /clickhouse/table ...
分类:
其他好文 时间:
2021-04-16 11:41:36
阅读次数:
0
下载地址:https://xz.aliyun.com/forum/upload/affix/shiro_tool.zip 2021-03-31:新增自定义或随机useragentrandomagent --> random useragentuseragent= --> set useragentc ...
分类:
其他好文 时间:
2021-04-15 12:45:57
阅读次数:
0