摘要:
本地Kafka客户端启动正常,可以正常生产消费信息。但是把jar包放在别的电脑上,则出现报错。 报错如下: 2021-01-14 10:26:53.539 WARN 8340 [ntainer#0-0-C-1] org.apache.kafka.clients.NetworkClient : [Co 阅读全文
摘要:
一,中文字符转十进制原理分析 GBK编码中一个汉字由二个字符组成,获取汉字字符串的方法如下 $string = "不要迷恋哥"; $length = strlen($string); for($i=0;$i<$length;$i++){ if(ord($string[$i])>127){ $resu 阅读全文
摘要:
// 使用1个字节表示 public static String numToHex8(int b) { return String.format("%02x", b);// 2表示需要两个16进制数 } // 使用2个字节表示 public static String numToHex16(int 阅读全文
摘要:
java跟python类似的做法,在java中字符串的编码是java修改过的一种Unicode编码,所以看到java中的字符串,心理要默念这个东西是java修改过的一种Unicode编码的编码。 package string; import java.nio.charset.Charset; pub 阅读全文
摘要:
通常hover后面跟的选择器,都是在myClass结构之下 的dom元素。 如果想在myClass下添加after等,就需要两个::号。 注:after/before是属于myclass的下级元素,并不是同级 .myClass:hover::after{ content: ''; display: 阅读全文
摘要:
qt 出现如下错误提示: Cannot parse project "gallery": The currently selected kit "Replacement for "Desktop Qt 5.9.9 MinGW 32bit"" does not have a valid Qt. 解决方 阅读全文
摘要:
记录一下QT中如何实现 ModbusCRC16 校验码计算 代码: #include <QCoreApplication> #include <QDebug> //CRC16计算函数 uint16_t ModbusCRC16(QByteArray senddata) { int len=sendda 阅读全文
摘要:
头文件 #include <QtConcurrent/QtConcurrentRun> 表达式方式 QtConcurrent::run([=]() { // 需要执行的代码 }); 执行完触发槽函数 #include <QFutureWatcher> #include <QtConcurrent/Q 阅读全文
摘要:
一、新建个工程文件,然后拖动个按钮上去 二、在构造函数中加上如下的一句代码: connect(ui->pushButton, SIGNAL(clicked()), qApp, SLOT(aboutQt())); 三、编译之后实现效果: 转自:https://blog.csdn.net/Littleh 阅读全文
摘要:
替换matcher可以做到 亲测有效 原文链接 import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) const createRouter = () => new Router({ mode: 'history', 阅读全文