前言 最近在面试中被问到了这个区别,没回答得很好,刚好这一块涉及到了spring的异步任务,就好好的来总结一下关于源码的一些东西。 正文 这个类是spring框架的下的一个类,这个类是对jdk自带的ThreadPoolExecutor进行了封装。 他的底层实现还是jdk的ThreadPoolExec ...
分类:
其他好文 时间:
2021-07-05 17:36:41
阅读次数:
0
后台Response和异常和日志封装 1.在小luffyapi中新建utils包,包下创建response.py,代码如下 from rest_framework.response import Response class APIResponse(Response): def __init__(s ...
分类:
其他好文 时间:
2021-07-05 17:24:29
阅读次数:
0
Java面向对象(Object-Oriented) 本质:以类的方式组织代码,以对象的方式封装数据。 面向过程:步骤清晰简单,适合处理一些较为简单的问题 面向对象:物以类聚,分类的思维模式,思考问题首先解决问题需要哪些分类,然后对这些分类进行单独思考,最后才对某个分类下的细节进行面向过程的思考。 面 ...
分类:
编程语言 时间:
2021-07-05 17:07:48
阅读次数:
0
文件上传 新建一个项目,添加UploadController @RestController public class UploadController { @PostMapping("upload") public String post(@RequestParam("file") Multipa ...
分类:
Web程序 时间:
2021-07-05 16:40:02
阅读次数:
0
Python中的seek函数 seek函数通常与readline函数结合在一起 readline只能读取文件一行 与seek函数结合在一起就可以实现读取整个文件的内容 f = open("A.txt", "rb")//使用seek函数读取文件必须使用b模式选项打开文件f.seek(0)print(' ...
分类:
编程语言 时间:
2021-07-05 16:38:37
阅读次数:
0
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi ...
select trigger_name as '名称' ,event_object_schema as'所属库',event_object_table as'所属表',event_manipulation as '触发事件',action_timing as '触发??器时机',action_sta ...
分类:
数据库 时间:
2021-07-02 16:12:53
阅读次数:
0
file1=new File(path);//path 为文件地址String parentPath=file1.getParent();parentPath为path的父级目录String[] arr=null;//用来验证文件是否为空文件File parentFile=new File(pare ...
分类:
编程语言 时间:
2021-07-02 16:09:34
阅读次数:
0
var user = { name:"angdh", age:11, }; console.log( JSON.stringify(Object.getOwnPropertyDescriptors(user),null,2) ); { "name": { "value": "angdh", "wri ...
分类:
Web程序 时间:
2021-07-02 16:01:40
阅读次数:
0
主要讨论RR隔离级别,因为RC只是少了间隙锁。 一、innodb七种锁 共享/排他锁(Shared and Exclusive Locks) 共享锁(Shared Locks,S锁) 排他锁(Exclusive Locks,X锁) 可以一起读,读写/写写互斥。 意向锁(Intention Locks ...
分类:
数据库 时间:
2021-07-02 15:56:48
阅读次数:
0