使用注解开发 一、使用注解开发 说明 在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
GhostScript 沙箱绕过(命令执行)漏洞 漏洞描述 1.漏洞编号:CVE-2018-19475 2.影响版本: 3.漏洞产生原因: 2018年底来自Semmle Security Research Team的Man Yue Mo发表了CVE-2018-16509漏洞的变体CVE-2018-1 ...
分类:
其他好文 时间:
2021-02-22 12:52:44
阅读次数:
0
创建账号并登录Mutillidae 使用Security Level 0进行SQL注入 SQL语句 格式:select * from accounts where username = '$USERNAME' and password = '$PASSWORD' 如果把这里的变量$USERNAME改 ...
分类:
数据库 时间:
2021-02-20 11:56:22
阅读次数:
0
一、概述 在项目中,点击下载按钮,就可以下载文件。 传统的下载链接一般是get方式,这种链接是公开的,可以任意下载。 在实际项目,某些下载链接,是私密的。必须使用post方式,传递正确的参数,才能下载。 二、django项目 本环境使用django 3.1.5,新建项目download_demo 安 ...
分类:
其他好文 时间:
2021-02-20 11:55:24
阅读次数:
0
Vue3 与依赖注入 本文写于 2021 年 2 月 19 日 在 React 中,我们可以通过 context 与 useContext 实现单例、注入……等诸多特性。 详细请看上一篇文章:如何利用 React Hooks 管理全局状态. 例如: const SomeService = creat ...
分类:
其他好文 时间:
2021-02-20 11:52:05
阅读次数:
0
AES: package com.example.wuji.jiami; import com.sun.org.apache.xml.internal.security.utils.Base64; import javax.crypto.Cipher; import javax.crypto.spe ...
分类:
其他好文 时间:
2021-02-19 13:13:37
阅读次数:
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
一.导入坐标 <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId></dependency><dependency> <groupId>org ...
分类:
编程语言 时间:
2021-02-18 13:02:46
阅读次数:
0