连接Mysql客户端 mysql -hxxx.xx.x.x -uxxx -p'xxxxxx' -P xxx -- ip 用户名 密码 端口号 show slave status\G; 在MYSQL的主从复制中 ,通过命令show master status,可以查看master数据库当前正在使用的二 ...
分类:
数据库 时间:
2021-06-09 15:31:03
阅读次数:
0
前言 有时候我们使用drf的Response,会发现默认返回的格式不太友好,每次我们都需要写入以下的格式 return Response({ "status": 0, "message": "成功", "results": serializer.data }) 这样会非常麻烦,我们想默认就有stat ...
分类:
其他好文 时间:
2021-06-09 15:29:52
阅读次数:
0
java文件中包含3700行 /** * Returns the {@code Class} object associated with the class or * interface with the given string name. Invoking this method is * e ...
分类:
编程语言 时间:
2021-06-09 10:31:41
阅读次数:
0
Dapr at 20,000 feet 俯瞰Dapr In chapter 1, we discussed the appeal of distributed microservice applications. But, we also pointed out that they dramatic ...
分类:
Web程序 时间:
2021-06-08 23:37:22
阅读次数:
0
实验任务一: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char n ...
分类:
其他好文 时间:
2021-06-08 23:29:04
阅读次数:
0
title: TCP date: 2021-06-07 22:42:01 tags: NET categories: Java description: top_img: comments: cover: TCP InetAddress **作用:**封装计算机的IP地址和DNS(没有端口信息)。 ...
分类:
编程语言 时间:
2021-06-08 23:17:07
阅读次数:
0
1、 #include <stdio.h> #include <time.h> // time_t数据类型,日历时间头文件 int main(void) { time_t current = time(NULL); // 利用time函数获取日历时间(返回1970之后的秒数,整型) struct t ...
分类:
编程语言 时间:
2021-06-08 23:04:50
阅读次数:
0
当小数点后位数过多,多余的0没有实际意义,根据业务需求需要去掉多余的0。后端存储浮点型数据一般会用到Bigdecimal 类型,可以调用相关方法去掉小数后多余0,然后转为string。 public static void main(String[] args) { //若是String类型,也可以 ...
分类:
编程语言 时间:
2021-06-08 22:53:29
阅读次数:
0
JDBC:(JavaDatabase Connectivity:java数据库连接): 什么是JDBC? SUN公司为了简化开发人员(对数据库统一)的操作,提供了一个java操作数据库的规范,这就是JDBC。 或者说,JDBC是一款实现不同数据语言驱动的接口。 JDBC的操作步骤: 注册驱动--→2 ...
分类:
数据库 时间:
2021-06-08 22:24:30
阅读次数:
0
题解: 方法1: 哈希表:遍历所有节点,每次遍历到一个节点时,判断该节点是否被访问过。 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x ...
分类:
其他好文 时间:
2021-06-08 22:22:53
阅读次数:
0