package com.sjw.flink import org.apache.flink.configuration.Configurationimport org.apache.flink.streaming.api.functions.sink.{RichSinkFunction, SinkF ...
分类:
其他好文 时间:
2020-07-10 00:43:32
阅读次数:
74
单生成树(STP/RSTP)的弊端? 1,不能做负载分担 例如下图,为了实现流量分担,需要配置两条上行链路为Trunk链路,允许通过所有的VLAN;SW1和SW2之间的链路也配置为Trunk链路,允许通过所有VLAN。VLAN2的三层接口配置在SW1上,VLAN3的三层接口配置在SW2上。 如果SW ...
分类:
其他好文 时间:
2020-07-08 13:43:49
阅读次数:
81
drf(二) 序列化组件介绍 1. 序列化,序列化器会把模型对象转换成字典,经过response以后变成json字符串 2. 反序列化,把客户端发送过来的数据,经过request以后变成字典,序列化器可以把字典转成模型 3. 反序列化,完成数据校验功能 使用范例: # ser.py class Bo ...
分类:
编程语言 时间:
2020-07-07 20:15:31
阅读次数:
52
Git 学习 首先安装 git ,安装过程很简单,省略。 安装完git之后需要配置git $ git config --global user.name "Your Name" $ git config --global user.email "email@example.com" 初始化仓库 切换 ...
分类:
其他好文 时间:
2020-07-05 17:02:55
阅读次数:
67
isNotEmpty(str)等价于 str != null && str.length > 0 isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length > 0 同理 isEmpty 等价于 str == null ...
分类:
编程语言 时间:
2020-07-04 15:26:47
阅读次数:
71
方法一: $str = " www.wdphp.com "; $var = trim($str); $len = strlen($var)-1; echo $var[$len]; 方法二: $str = "www.wdphp.com"; echo substr($str, -1); 来源:https ...
分类:
Web程序 时间:
2020-07-04 14:59:37
阅读次数:
71
PHP源码来自:https://github.com/bowu678/php_bugs 快乐的暑期学习生活+1 01 extract变量覆盖 <?php $flag='xxx'; extract($_GET); if(isset($shiyan)) { $content=trim(file_get_ ...
分类:
Web程序 时间:
2020-07-03 09:12:11
阅读次数:
122
1. String.trim() trim()是去掉首尾空格 2.str.replace(" ", ""); 去掉所有空格,包括首尾、中间 String str = " hell o "; String str2 = str.replaceAll(" ", ""); System.out.print ...
分类:
编程语言 时间:
2020-07-02 10:45:15
阅读次数:
60
经常会有这样的业务需求,需要对一个 stream 连续分区,比如: source .keyBy(0) .process(new TmpKeyedProcessFunction2) .keyBy(0) .process(new TmpKeyedProcessFunction2) .keyBy(0) . ...
分类:
其他好文 时间:
2020-07-01 22:13:41
阅读次数:
84
方法一:立刻按Ctrl+Z发现电脑文件删除后,可以立刻按下Ctrl+Z(撤回键),能够撤回上一次的操作。注意:删除文件后应立刻撤回,如果误删文件后又进行了其他操作,如复制、粘贴等,那么撤回将失败。方法二:回收站还原如果您删除的文件比较小,没有被电脑“永久删除”,并且近期内您没有清空过回收站,那么可以在回收站中查询文件,找到文件将其“还原”。文件还原后,会回到原来的路径下。哪些情况会导致数据无法恢复
分类:
其他好文 时间:
2020-06-30 10:28:22
阅读次数:
61