在 Java 中,并不是所有的类型信息都能在编译阶段明确,有一些类型信息需要在运行时才能确定,这种机制被称为 RTTI,英文全称为 Run-Time Type Identification,即运行时类型识别,有没有一点“知行合一”的味道?运行时类型识别主要由Class类实现。 在日常的学习工作当中, ...
分类:
编程语言 时间:
2020-11-21 12:46:21
阅读次数:
31
目录: 1、SpringBoot的web项目部署为war2、SpringBoot的web项目部署为jar3、SpringBoot开发非Web程序 3.1、方式一:利用 main()方法 3.2、方式二:通过springboot启动加载类 CommandLineRunner#run() 1、Sprin ...
分类:
编程语言 时间:
2020-11-21 12:42:59
阅读次数:
27
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity shou ...
分类:
编程语言 时间:
2020-11-21 12:37:58
阅读次数:
15
systemd-cgls 2. How to use cgroups? The user can access and manage cgroups directly and indirectly (with LXC, libvirt or Docker). Install the necessar ...
分类:
其他好文 时间:
2020-11-21 12:35:14
阅读次数:
7
在Gin的整个实现中,中间件可谓是Gin的精髓。一个个中间件组成一条中间件链,对HTTP Request请求进行拦截处理,实现了代码的解耦和分离,并且中间件之间相互不用感知到,每个中间件只需要处理自己需要处理的事情即可。今天我们就通过这篇文章,详细的介绍Gin中间的使用和原理。 Gin默认中间件 在 ...
分类:
其他好文 时间:
2020-11-21 12:24:54
阅读次数:
4
container和image是两种不同的概念,image即指存在的镜像,container指docker运行起来后image的实例。 当使用docker kill 把某个正在运行的实例kill掉之后,再次运行,会提示: Error response from daemon: Conflict. T ...
分类:
数据库 时间:
2020-11-21 12:09:25
阅读次数:
10
#概述 es/kibana 7.4.2 enable security docker 19.x.y requirment #resource limits /etc/security/limits.d/20-nproc.conf #* soft nproc 4096 root soft nproc ...
分类:
其他好文 时间:
2020-11-21 11:57:04
阅读次数:
6
1.目标框架设置为.net core3.1/.net5 2.将所有的nuget包升级为最新版本 3.需要改动的一些地方 Program.cs public class Program { public static void Main(string[] args) { CreateWebHostBu ...
分类:
Web程序 时间:
2020-11-20 12:23:49
阅读次数:
49
什么是Docker? Docker是由dotcloud公司使用golang语言进行开发的,基于Linux内核的 cgroup,namespace,以及OverlayFS类的Union FS等技术,对进程进行封装隔离,属于操作系统层面的虚拟化技术。由于隔离的进程独立于宿主和其它的隔离的进程,因此也称其 ...
分类:
其他好文 时间:
2020-11-20 12:22:59
阅读次数:
27
vue-cli 初始化项目 npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install -g vue-cli vue init webpack demo cd demo cnpm i npm run dev ...
分类:
其他好文 时间:
2020-11-20 12:21:03
阅读次数:
25