先看一个例子: #include <numeric> #include <vector> #include <algorithm> #include <iterator> #include <thread> #include <iostream> #include <functional> usin ...
分类:
编程语言 时间:
2020-07-04 01:41:11
阅读次数:
74
{pc:get sql="select * from phpcms_page where catid=2" num="1"} {loop $data $v} {var_dump($v)} {/loop} {/pc} ...
分类:
Web程序 时间:
2020-07-03 23:00:48
阅读次数:
82
https://www.jianshu.com/p/f70ee1765a61 如何判断当前线程是不是主线程 Looper.myLooper() == Looper.getMainLooper() Looper.getMainLooper().getThread() == Thread.current ...
分类:
其他好文 时间:
2020-07-03 21:16:52
阅读次数:
38
工作的时候遇到程序需要进行RSA加密解密的部分,在写第一版测试的时候,出现了:Exception in thread "main" javax.crypto.BadPaddingException: Data must start with zero at sun.security.rsa.RSAP ...
分类:
其他好文 时间:
2020-07-03 21:05:14
阅读次数:
76
1、使用Java提供的工具生成证书 路径不能是文件夹,否则会找不到出现说 java.lang.Exception: 密钥库文件存在, 但为空的情况 keytool -genkey -alias myKeyStore -keyalg RSA -keystore 'D:\work\keystore\ke ...
分类:
Web程序 时间:
2020-07-03 15:20:07
阅读次数:
96
class SingleDemo { public static SingleDemo instance = null; private SingleDemo() { System.out.println(Thread.currentThread().getName() + "\t 我是Single ...
分类:
编程语言 时间:
2020-07-03 12:18:54
阅读次数:
68
在 Docker 里面无论如何也无法产生 Core Dump 文件,这是因为系统在产生 Core Dump 文件的时候是根据 /proc/sys/kernel/core_pattern 的设定。而默认的设定是 |/usr/share/apport/apport %p %s %c %P,也就是用管道传 ...
分类:
其他好文 时间:
2020-07-03 10:51:48
阅读次数:
81
导出 mysqldump -hlocalhost -uroot -proot wxifc> D:\DBBACK\wxifc_data070202.sql 系统找不到指定的路径。 就是dbback这个文件夹不存在创建一个就好了 echo 数据库为用户名为root 密码为root 数据库名为 wxifc ...
分类:
其他好文 时间:
2020-07-03 00:51:05
阅读次数:
57
转自: java命令--jstack 工具 ps -mp 1 -o THREAD,tid,time | sort -rn jstack 1|grep D29 -A 30 printf "%x\n" 10426 jstack -l 10424 | grep 28ba jstack pid jstack ...
分类:
编程语言 时间:
2020-07-02 16:47:45
阅读次数:
59
一、什么是线程封闭 在多线程编程中,在对共享的数据进行访问时,通常需要进行同步。一种避免使用同步的方式就是不共享数据。如果仅仅只是在单线程内访问数据,那么就不需要进行同步。这种技术就叫做线程封闭(Thread Confinement),这是实现线程安全性的最简单方式之一。某个对象封闭在一个线程中时, ...
分类:
编程语言 时间:
2020-07-01 23:42:45
阅读次数:
67