logging是一个python的自带模块,用来记录日志信息,大白话就是把你print()的东西输出到控制台console或者文件file 这是一个非常重要的模块,在我们眼中仅次于os和sys,下面将我自己封装的logging代码贴出来 import logging def logger_handl ...
分类:
编程语言 时间:
2021-01-29 12:09:22
阅读次数:
0
继上一篇的授权码授权模式,这篇会继续实现混合授权模式 首先修改Config.cs 添加Client new Client { ClientId = "hybrid_client", ClientName = "hybrid Auth", ClientSecrets = { new Secret("h ...
分类:
其他好文 时间:
2021-01-29 11:49:14
阅读次数:
0
1、依赖 <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.4.0</version> </dependency> 2、JWT工具类生成 import com.auth0.jw ...
分类:
编程语言 时间:
2021-01-27 13:14:05
阅读次数:
0
对象关系映射(英语:(Object Relational Mapping,简称ORM,或O/RM,或O/R mapping),是一种程序技术,用于实现面向对象编程语言里不同类型系统的数据之间的转换 。从效果上说,它其实是创建了一个可在编程语言里使用的--“虚拟对象数据库”。 面向对象是从软件工程基本 ...
分类:
Web程序 时间:
2021-01-26 12:45:09
阅读次数:
0
class EventBus { constructor(){} handlerBus={} //注册 $on(eventName,handler){ if(!this.handlerBus.hasOwnProperty(eventName)){ this.handlerBus[eventName] ...
分类:
Web程序 时间:
2021-01-22 12:01:16
阅读次数:
0
es集群写性能压测几个影响点1、插入方式:es支持单条和批量bulk,bulk在测试工具中用的比较多,需要注意bulk的size,以及bulk client的数量比如esrally中以http_logs的日志类型为例 2、doc的数据类型mapping中包含的数据类型、单条doc的长度比如esral ...
分类:
其他好文 时间:
2021-01-21 10:49:17
阅读次数:
0
Sentinel上下文创建及执行,入口示例代码: public static void fun() { Entry entry = null; try { entry = SphU.entry(SOURCE_KEY); } catch (BlockException e1) { } finally ...
分类:
其他好文 时间:
2021-01-20 11:51:13
阅读次数:
0
data: { datas: { a: 77, b: 86 } } 使用deep:true深层次监听 'datas':{ handler:function(newVal){ console.log(this.datas); }, deep:true } 监听某一个具体的属性 'datas.a':{ ...
分类:
其他好文 时间:
2021-01-18 10:45:24
阅读次数:
0
Spring MVC 注解开发 所需pom依赖: <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.0.RELEASE</version> < ...
分类:
编程语言 时间:
2021-01-14 11:33:10
阅读次数:
0
Jdk 8 的hashmap ,内部使用Node 表示数组成员,Node 实现了Map.Entry接口。 put() 过程: 1 public class HashMap<K,V> extends AbstractMap<K,V>implements Map<K,V>, Cloneable, Ser ...
分类:
编程语言 时间:
2021-01-14 11:29:05
阅读次数:
0