把某字段第10位设置为1
update tests set uid = uid|(1 << 10) where id=1;
把某个字段第10位设置为0
update tests set uid = uid&~(1 << 10) where id=1;
把某字段第10位设置为1
update tests set uid = uid|(1 << 10) where id=1;
把某个字段第10位设置为0
update tests set uid = uid&~(1 << 10) where id=1;
/**
* 判断字符串是否为数字
*
* @param str String
* @return Boolean
*/
public static Boolean isNumeric(String str) {
//?:0或1个, *:0或多个, +:1或多个 支持判断正负、整数小数
return str.matches("-?[0-9]+.?[0-9]*");
}
java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcherImpl.writev0(Native Method) at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
出现这种问题,一般有以下几种情况
通过traceid找到这个异常导致的下一个异常
java.io.IOException: UT010029: Stream is closed
at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:138)
这个就很明显了是第二中情况,客户端问题导致了Stream is closed
先执行 minikube delete
再执行 minikube start --image-mirror-country='cn'