上一页 1 2 3 4 5 6 7 8 ··· 24 下一页
摘要: package com.xf; public class WaitNotify { // 等待标记 private int flag; // 循环次数 private final int loopNumber; public WaitNotify(int flag, int loopNumber) 阅读全文
posted @ 2022-08-31 15:21 wujf 阅读(22) 评论(0) 推荐(0) 编辑
摘要: import traceback try: a=1/0 except: print(traceback.format_exc()) 阅读全文
posted @ 2022-07-26 11:56 wujf 阅读(323) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>net.logstash.logback</groupId> <artifactId>logstash-logback-encoder</artifactId> <version>6.6</version> </dependency> <appender 阅读全文
posted @ 2022-07-14 15:51 wujf 阅读(337) 评论(0) 推荐(0) 编辑
摘要: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>in 阅读全文
posted @ 2022-06-27 14:04 wujf 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1、继承UnsynchronizedAppenderBase package com.xf.config; import java.util.Map; import org.springframework.data.mongodb.core.MongoTemplate; import org.spr 阅读全文
posted @ 2022-06-25 12:15 wujf 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1、引入日志依赖 <dependency> <groupId>com.cwbase</groupId> <artifactId>logback-redis-appender</artifactId> <version>1.1.5</version> <!-- <exclusions> <exclus 阅读全文
posted @ 2022-06-22 16:46 wujf 阅读(121) 评论(0) 推荐(0) 编辑
摘要: import sys import time import os import paramiko from pygments.lexers import shell baseconfig = { "ip": ", "port": , "username": "", "password": "“, " 阅读全文
posted @ 2022-06-13 16:50 wujf 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1、top获取高cpu占用的pid,如266202、查看pid的线程情况, top -H -p 266203、把cpu高占用的线程号转为16进制,printf "%x" 26652 结果67fc4、查看线程运行代码 jstack 26620|grep 67fc 阅读全文
posted @ 2022-06-11 12:26 wujf 阅读(35) 评论(0) 推荐(0) 编辑
摘要: import sys from orator import DatabaseManager import xlrd dbconfig = { 'mysql': { 'driver': 'mysql', 'host': "", 'database': "", 'user': "", 'password 阅读全文
posted @ 2022-06-06 10:30 wujf 阅读(81) 评论(0) 推荐(0) 编辑
摘要: def encrypt(self, params: str, key: str, iv: str) -> str: """加密""" generator = AES.new(key.encode("utf8"), AES.MODE_CBC, iv.encode("utf8")) bs = AES.b 阅读全文
posted @ 2022-06-01 12:12 wujf 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页