简述 springboot是基于约定的,所以很多配置都有默认的值,但如果想用自己的配置替换掉默认的配置的话,就可以使用application.properties或者application.yml(application.yml)进行配置 yml和properties的区别 properties文件 ...
分类:
编程语言 时间:
2021-07-20 16:25:24
阅读次数:
0
安装 pip install xmltodict json 模块是python3内置模块,不需要安装 使用 #! /usr/bin/env python # -*- coding: utf-8 -*-# # # Name: demo # Author: yunhgu # Date: 2021/7/1 ...
分类:
编程语言 时间:
2021-07-12 18:24:23
阅读次数:
0
JNI中jstring转码到std::string其实就是utf16转码到你选择的编码的过程,因为我C++程序要用utf8,所以这里我转成utf8 用到的转码库是utfcpp 这个库的使用方法就是下载source文件夹下全部内容,然后#include "utf8.h"在你的项目 代码: std::s ...
分类:
编程语言 时间:
2021-07-12 18:01:37
阅读次数:
0
上一篇升级版,转换文件内容。 #!/user/bin env python # author:Simple-Sir # time:2021/7/9 23:32 def txt_2_list(filename): dic = {} dic_k = [] dic_v = [] with open(fil ...
分类:
编程语言 时间:
2021-07-09 17:54:52
阅读次数:
0
# Author by zhangyida# 詹皇明年夺冠download_empiar.sh#!/usr/bin/env bash# Downloads a dataset with a given accession code from EMPIAR##########ACCESSION_COD ...
分类:
其他好文 时间:
2021-07-05 18:58:45
阅读次数:
0
开发中有测试环境,开发环境,他们的后端url接口都不一样,有些插件需要在测试环境使用,而到了生产环境就不需要使用,比如移动端的调试神器vconsole,到了生产环境就不需要用了 具体配置如下 首先在跟目录创建三个文件 分别是.env.development、.env.production、.env. ...
分类:
其他好文 时间:
2021-07-05 18:47:05
阅读次数:
0
现在主流监控软件和云平台提供的流量监控,监控粒度最小只能设置为1分钟,无法准确定位故障,特别是瞬时突发较大的业务 对比python的snmp库还是更喜欢用subprocess调用snmpwalk命令,脚本如下,前端可以使用脚本采集到的数据进行绘图 1 #! /usr/bin/env python 2 ...
分类:
其他好文 时间:
2021-07-05 16:57:15
阅读次数:
0
#region 毫秒延时 界面不会卡死 public static void Delay(int mm) { DateTime current = DateTime.Now; while (current.AddMilliseconds(mm) > DateTime.Now) { Applicati ...
分类:
移动开发 时间:
2021-07-01 16:29:40
阅读次数:
0
一、获取服务名 登陆 consul UI 平台, 找到我们对应的服务,他们服务在 consul 中的名称。 二、 脚本 注销基于的api: http://{}:{}/v1/agent/service/deregister/{} 注销脚本: #!/usr/bin/env python3 # -*- c ...
分类:
其他好文 时间:
2021-06-30 18:26:30
阅读次数:
0
#!/usr/bin/env bash __Author__="liy" # 发送钉钉告警 function DingDing(){ curl 'https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx ...
分类:
其他好文 时间:
2021-06-30 18:14:38
阅读次数:
0