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
Windows编程-异步IO-1- 当我们读取一个文件时,一般情况下,线程是阻塞的,也就是当前线程在等待文件读取操作结束,也就是这个线程只用来读文件,等读完了再返回。这种方式叫做同步IO。 Windows在系统底层为用户实现了另一种高效的机制,叫做重叠I/O,又称作异步I/O。异步I/O操作提供了一 ...
namespace WindowsControl { partial class Form1 { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null ...
class EventBus { constructor(){} handlerBus={} //注册 $on(eventName,handler){ if(!this.handlerBus.hasOwnProperty(eventName)){ this.handlerBus[eventName] ...
分类:
Web程序 时间:
2021-01-22 12:01:16
阅读次数:
0
componentDidMount() { const scrollDom = document.querySelectorAll('.q1-home')[0]; scrollDom.addEventListener('scroll', this.handleScroll.bind(this)); ...
分类:
其他好文 时间:
2021-01-22 12:00:44
阅读次数:
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
委托就是把一个函数封装成对象,强化了c#的面向对象特性, 用法还在摸索 事件是委托的特殊拓展,事件的使用主要包括: 1.被委托者的创建 public delegate void XXEventHandler(Parameter A,~); //多播时返回只能是void,且使用该被委托者时 3,5中的 ...
import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import java.awt.*; import java.awt.event.ActionEv ...
分类:
编程语言 时间:
2021-01-07 12:18:50
阅读次数:
0