jdbc:mysql://172.16.50.141:3306/tx-manager?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false 如果mysql的链接后添加serverTimezone=UTC这种时区语句没有作用的 ...
分类:
数据库 时间:
2020-05-25 17:35:23
阅读次数:
124
spring: datasource: url: jdbc:mysql://localhost:3306/lovers?serverTimezone=UTC #jdbc:mysql://localhost:3306/lovers?useUnicode=true&characterEncoding=u ...
分类:
其他好文 时间:
2020-05-24 09:34:29
阅读次数:
44
"Link" 题目大意:单点修改,每次询问一个区间的所有颜色出现次数的$\text{Mex}.$ 例如,区间中三种颜色分别出现了$2,2,3$次,又因为其他颜色出现次数一定是$0$,所以这里的答案是$1.$ $\text{Solution:}$ 这是带修莫队的一道题。 观察到,我们可以$O(1)$来 ...
分类:
系统相关 时间:
2020-05-23 13:31:27
阅读次数:
66
```python#!/usr/bin/env python-devops# -*- coding: utf-8 -*-# @Time : 2019-05-31 16:00# @Author : Anthony.long# @Site :# @File : check_https_dated.py#... ...
分类:
Web程序 时间:
2020-05-20 18:26:15
阅读次数:
184
main() { while(1) { if(capture_Cnt==0) { __HAL_TIM_SET_CAPTUREPOLARITY(&htim2,TIM_CHANNEL_2,TIM_INPUTCHANNELPOLARITY_RISING); //设置为上升沿捕获 HAL_TIM_IC_St ...
分类:
其他好文 时间:
2020-05-20 17:11:58
阅读次数:
124
To read a file in C, you must create a pointer to the file. To do this, you use the FILE data type:#include <stdio.h> /* You need this include file to ...
分类:
其他好文 时间:
2020-05-19 12:24:55
阅读次数:
53
Remove kernel In CentOS8 1. check up using kernel : [root@test ~]# uname -aLinux test 4.18.0-147.8.1.el8_1.x86_64 #1 SMP Thu Apr 9 13:49:54 UTC 2020 x ...
分类:
其他好文 时间:
2020-05-19 01:02:54
阅读次数:
69
第一步:查看当前的内核 root@linux:~# uname -a Linux linux 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux 第二步:查看当前系统中 ...
分类:
系统相关 时间:
2020-05-18 18:55:28
阅读次数:
88
网上处理方法基本千篇一律。就是在tomcat的web.xml或者工程目录下的web.xml下配置下面的代码。 <security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> <http-method>PUT< ...
分类:
Web程序 时间:
2020-05-18 12:27:20
阅读次数:
90
问题解决 时间差8h小时问题 容器默认采用UTC时区(标准时间),而实际时间为CST(China Shanghai Time,东八区时间),通过配置环境变量解决 ...
分类:
其他好文 时间:
2020-05-15 14:00:57
阅读次数:
62