单例模式--线程安全的单例,懒汉式、饿汉,枚举等 享元设计模式:Message--obtain,,String public static void main(String[] args) { String s1 = "hello"; String s2 = new String("hello"); ...
分类:
编程语言 时间:
2020-05-30 10:37:20
阅读次数:
58
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.Test; publ ...
分类:
移动开发 时间:
2020-05-29 23:35:08
阅读次数:
85
hashlib — Secure hashes and message digests — Python 3.8.3 documentation https://docs.python.org/3.8/library/hashlib.html For better multithreading pe ...
分类:
编程语言 时间:
2020-05-29 21:46:45
阅读次数:
110
hashlib 安全哈希与消息摘要 — Python 3.8.3 文档 https://docs.python.org/zh-cn/3.8/library/hashlib.html hashlib — Secure hashes and message digests — Python 3.8.3 ...
分类:
其他好文 时间:
2020-05-29 21:39:08
阅读次数:
107
hashlib — Secure hashes and message digests — Python 3.8.3 documentation https://docs.python.org/3.8/library/hashlib.html#randomized-hashing BLAKE2 ht ...
分类:
其他好文 时间:
2020-05-29 21:26:06
阅读次数:
81
Producerbehavior:Ifkafkabrokerisnotstarted,surprisingly,evenifspringcloudkafkastreamfailstocreateakafkaproducer,itwillnotfailfastandapplicationwillstartupasnormalandonlyanexceptionappearsonconsole.See
分类:
编程语言 时间:
2020-05-29 09:53:33
阅读次数:
74
rabbit-mq学习1:基本概念和快速入门 一、什么是MQ 消息队列(Message Queue,简称MQ)本质是个队列,遵循先入先出,主要用途:不同进程Process/线程Thread之间通信 。 可以用来在两个进程间进行异步的数据交换。进程A把消息放入消息队列中,然后继续执行后续任务;进程B从 ...
分类:
其他好文 时间:
2020-05-29 09:30:14
阅读次数:
59
bind 客户端可以调用bind函数吗?可以,可以指定端口 详见复习资料 客户端为何不调用bind函数,什么时候像套接字分配IP和端口号 listen 它现在定义的是已完成连接队列的最大长度,表示的是已建立的连接(established connection),正在等待被接收(accept 调用返回 ...
分类:
其他好文 时间:
2020-05-28 19:39:39
阅读次数:
100
使用Visual Studio Code, 遇到这样的警告,看着不舒服,怎样才能解决掉这个警告呢?"owner": "python","code": "unbalanced-tuple-unpacking","severity": 8,"message": "Possible unbalanced ... ...
分类:
其他好文 时间:
2020-05-28 16:44:36
阅读次数:
119
Vue的计算属性和方法和侦听器 (一)计算属性 首先要明白在模板语法里面可以进行简单运算 但是尽量不要会有过多逻辑不好维护 所以把操作单独列出来 //会弄的很乱是吧 <div {{ message.split('').reverse().join('') }} </div> 所以把操作方放在 com ...
分类:
其他好文 时间:
2020-05-28 16:35:33
阅读次数:
64