SecurityContext SecurityContext是安全的上下文,所有的数据都是保存到SecurityContext中。 可以通过SecurityContext获取的对象有: Authentication SecurityContextHolder SecurityContextHold ...
分类:
编程语言 时间:
2021-03-04 13:35:29
阅读次数:
0
2021年2月27日: 软件总结: adapter: package com.example.jiatingruanjian.adapter;import android.content.Context;import android.view.LayoutInflater;import androi ...
分类:
其他好文 时间:
2021-03-01 13:15:42
阅读次数:
0
逐像素浮点运算转换的,很慢,目测 1080p 只有 12fps 左右 sws_scale(img_convert_context, (const unsigned char *const *)p_frame->data, p_frame->linesize, 0, p_codec_context-> ...
分类:
其他好文 时间:
2021-02-26 12:53:55
阅读次数:
0
1.pom文件引入maven依赖: <!-- RabbitMq --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </depen ...
分类:
编程语言 时间:
2021-02-25 11:56:22
阅读次数:
0
1、概述 2、示例 [root@node201 ~]# cat docker-compose.yml version: '3' services: web: build: context: ./ dockerfile: Dockerfile #image: nginx ports: - "88:80 ...
分类:
其他好文 时间:
2021-02-24 13:27:58
阅读次数:
0
使用注解开发 一、使用注解开发 说明 在spring4之后,要想使用注解形式,必须要得引入aop的包。 在配置文件中,需要引入一个context约束,及注解支持: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.spri ...
分类:
其他好文 时间:
2021-02-24 13:17:23
阅读次数:
0
什么是eventloop eventloop的概念其实很简单 (1)所有同步任务都在主线程上执行,形成一个执行栈(execution context stack)。 (2)主线程之外,还存在"任务队列"(task queue)。只要异步任务有了运行结果,就在"任务队列"之中放置一个事件。 (3)一旦 ...
分类:
编程语言 时间:
2021-02-24 13:17:02
阅读次数:
0
前端或APP上传图片,图片太大,后端也没必要要原图, 太大的图片,做以下处理。固定大小。 getBase64Image(imgpath:string) { var img = new Image(); //新建一个图片对象 img.src = imgpath; let canvas = docume ...
分类:
Web程序 时间:
2021-02-24 13:05:00
阅读次数:
0
Vue3 与依赖注入 本文写于 2021 年 2 月 19 日 在 React 中,我们可以通过 context 与 useContext 实现单例、注入……等诸多特性。 详细请看上一篇文章:如何利用 React Hooks 管理全局状态. 例如: const SomeService = creat ...
分类:
其他好文 时间:
2021-02-20 11:52:05
阅读次数:
0
1.泛型继承BaseAdapter public class MyAdapter<T> extends BaseAdapter { private Context mContext; private LinkedList<T> mData; public MyAdapter() { } public ...
分类:
其他好文 时间:
2021-02-18 13:03:00
阅读次数:
0