1. 创建服务配置文件 [root@localhost ~]# cat /etc/systemd/system/test.service [Unit] Description=test Service After=syslog.target [Service] User=root ExecStart ...
分类:
其他好文 时间:
2020-06-30 22:12:40
阅读次数:
56
文章链接:https://www.cnblogs.com/50614090/p/7389451.html,https://www.cnblogs.com/Z-Queen/p/12898857.html fiddler有两种断点,Before Requests(可以修改请求参数)、After Resp ...
分类:
其他好文 时间:
2020-06-30 17:27:59
阅读次数:
49
.clearfix:after { content: "."; display: block; height: 0; clear: both; overflow:hidden; visibility: hidden;} ...
分类:
Web程序 时间:
2020-06-30 10:59:34
阅读次数:
57
示例 @contextlib.contextmanager def result(a): print('before') yield print('after') 外层装饰源码 包装func函数,真实调用func()时,返回的为_GeneratorContextManager对象 def conte ...
分类:
其他好文 时间:
2020-06-29 13:42:44
阅读次数:
45
1.事故背景 在APP访问服务器接口时需要从redis中获取token进行校验,服务器上线后发现一开始可以正常访问,但只要短时间内请求量增长服务则无法响应 2.排查流程 (1)使用top指令查看CPU资源占用还远远达不到瓶颈,排查因为CPU资源不足导致服务不可用的可能 (2)查看tomcat线程池配 ...
分类:
编程语言 时间:
2020-06-28 18:07:18
阅读次数:
75
#### 示例 ``` @contextlib.contextmanager def result(a): print('before') yield print('after') ``` #### 外层装饰源码 包装func函数,真实调用func()时,返回的为_GeneratorContextM ...
分类:
其他好文 时间:
2020-06-28 00:31:58
阅读次数:
64
spring bean 容器的生命周期流程如下: 1、Spring 容器根据配置中的 bean 定义中实例化 bean。2、Spring 使用依赖 注入填充所有属性,如 bean 中所定义的配置。3、如果 bean 实现 BeanNameAware 接口,则工厂通过传递 bean 的 ID 来调用 ...
分类:
编程语言 时间:
2020-06-27 20:16:07
阅读次数:
78
简单工厂模式 Simple Factory Pattern 由一个工厂对象决定创建出哪一种产品类的实例。 Before you use simple factory pattern after 工厂方法模式 (把对象的实例化推迟到子类) 如果不同地方的Pizza又推出不同的口味,若使用简单工厂模式则 ...
分类:
其他好文 时间:
2020-06-27 00:21:56
阅读次数:
49
一、工程目录 二、SqlMapConfig.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.o ...
分类:
其他好文 时间:
2020-06-26 16:17:27
阅读次数:
41
7-3 Is It An AVL Tree (25分) In computer science, an AVL tree (Georgy Adelson-Velsky and Evgenii Landis' tree, named after the inventors) is a self-bal ...
分类:
其他好文 时间:
2020-06-26 14:44:26
阅读次数:
84