一、 现象 用户打开消息推送有概率报错,后续发现推送消息阅读数、点赞数无法正常更新,mysql报警有行锁, DBA抓到有锁表语句,kill该语句未正常恢复,elk日志有大量的java.sql.SQLException: connection holder is null 重启应用恢复 二、分析 根据 ...
分类:
其他好文 时间:
2020-05-23 16:53:18
阅读次数:
50
axios.js import axios from 'axios'; import api from './api'; // 创建一个axios实例 const axiosService = axios.create({ timeout: 5000, // 设置超时时间为5s }); // 添加请 ...
分类:
移动开发 时间:
2020-05-23 15:00:46
阅读次数:
69
import requests from bs4 import BeautifulSoup allUniv=[] def getHTMLText(url): try: r=requests.get(url,timeout=30) r.raise_for_status() r.encoding = ' ...
分类:
其他好文 时间:
2020-05-23 09:57:50
阅读次数:
495
import requests from bs4 import BeautifulSoup allUniv=[] def getHTMLText(url): try: r=requests.get(url,timeout=30) r.raise_for_status() r.encoding = ' ...
分类:
其他好文 时间:
2020-05-23 09:18:05
阅读次数:
480
JQuery实现AJAX更加简洁,方便. $.ajax([设置参数]); String url 、发送请求的地址,默认为当前页地址 String type、请求方式(POST或者GET,默认为GET) Number timeout 、设置请求超时时间 Object data 或 String dat ...
分类:
Web程序 时间:
2020-05-22 21:08:41
阅读次数:
90
1 pip3 --default-timeout=1000 install -U pip https://www.cnblogs.com/lucky-cat233/p/12605537.html https://blog.csdn.net/weixin_39773337/article/detail ...
分类:
其他好文 时间:
2020-05-21 19:05:43
阅读次数:
45
查询广东技术师范大学2018年最好大学排名以及科研质量。 import requests from bs4 import BeautifulSoup allUniv=[] def getHTMLText(url): try: r=requests.get(url,timeout=30) r.rais ...
分类:
其他好文 时间:
2020-05-21 00:16:47
阅读次数:
110
1 服务器基础配置 2 3 服务器端设定 4 5 设置服务器以守护进程的方式运行 6 daemonize yes | no 7 8 绑定主机地址 9 bind 127.0.0.1 10 11 设置服务器端口号 12 port 6379 13 14 设置数据库数量 15 databases 16 16 ...
分类:
其他好文 时间:
2020-05-21 00:06:52
阅读次数:
74
所以,首先要创建一个数据库的连接对象,即connection对象,语法如下: sqlite3.connect(database [,timeout,其他可选参数]) function: 此API打开与SQLite数据库文件的连接。如果成功打开数据库,则返回一个连接对象。 database: 数据库文 ...
分类:
其他好文 时间:
2020-05-20 20:18:22
阅读次数:
53
<!-- nutUI --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@nutui/nutui@2.1.8/dist/nutui.min.css"> <!-- nutUI --> <script src="https://c ...
分类:
其他好文 时间:
2020-05-20 14:00:23
阅读次数:
147