log4j-1.x 日志脱敏 扩展PatternLayout类+修改log4j.properties

log4j-1.2.16 日志手机号码脱敏 背景 项目做完,公司安全测试,说系统有安全漏洞,日志中未对用户信息进行脱敏处理,需要我对手机号进行脱敏处理,至少隐藏四位。锅从天上来,一期的项目的安全漏洞,之前没有安全测试,二期项目结束,测出来了,一脸懵的我~ 好学和负责任的我(没办法,后来就算不算是二...

2019-03-21 19:48:49

阅读数 126

评论数 0

1、CSDN markdown 字体、字号、颜色设置(自己用的)

居中的代码是<div align=center> CSDN markdown 字体、字号、颜色设置

2017-02-23 16:56:50

阅读数 465

评论数 0

日志打印mybatis中SQL

log4j.rootLogger = DEBUG,stdout,D log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Threshold = DEBUG log4j.appender.stdo...

2019-04-02 16:35:57

阅读数 33

评论数 0

记一次应用接口日志访问量和访问时长统计

2019-03-14 1、下载运维每天归档的日志 2、找运维要到 tomcat acess log 配置格式为 pattern=&quot;%{X-Forwarded-For}i %l %u %t “%r” %m %s %b %D&quot; 3、日志数据量不是很大,一共两个文件...

2019-03-14 11:25:09

阅读数 157

评论数 0

cvc-complex-type.2.4.c错误解决

报错信息: cvc-complex-type.2.4.c:The matching wildcard is strict,but no declaration can be found for element’tx:advice’ 解决办法: 在 xsi:schemaLocation 加上:...

2018-08-05 21:43:38

阅读数 268

评论数 0

MySQL+Maven+Spring+Mybatis

一. 数据库准备 MySQL安装包是 mysql-5.5.19-win32.msi,图形化管理MySQL界面 sqlyog_mysql.zip 查看数据库 show databases; 建表语句 use test; DROP TABLE IF EXISTS `t_user`; ...

2018-05-24 14:41:30

阅读数 115

评论数 0

Linux当月第一天日期,某日期前一天日期,某日期前一年日期

#当月的第一天日期 dt_date=`date +%Y%m01` # dt_date日期往前推1年 R1_date_start=`date --date=&quot;${dt_date}-1 year&quot; +%Y-%m-%d` # R1_date_start日期往前...

2018-04-11 15:13:18

阅读数 454

评论数 0

Linux 下用 crontab配置定时任务

1、crontab - l //查看定时任务列表 2、crontab -e //编辑定时任务 3、crontab 配置定时任务格式 : Minute Hour Day Month Dayofweek command 举例说明: Minute Hour Day ...

2018-04-11 10:43:53

阅读数 46

评论数 0

Matlab 2015b 原先正常使用,突然让重新激活

Matlab 2015b 本来正常使用,突然让重新激活 问题描述: Matlab 一直都是正常使用,今天打开时,出现了激活的界面,无法正常使用,重新导入license 文件,也一直失败。 解决办法: 将之前用到的crack中的license_R2015b.lic 中的日期修改一下,将所有的11-...

2017-11-19 20:32:53

阅读数 4659

评论数 9

LeetCode107. Binary Tree Level Order Traversal II

Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root).For ...

2017-05-07 21:33:07

阅读数 217

评论数 0

LeetCode104. Maximum Depth of Binary Tree

Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest l...

2017-05-07 17:01:45

阅读数 214

评论数 0

LeetCode101. Symmetric Tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmet...

2017-05-07 15:58:43

阅读数 160

评论数 0

LeetCode567. Permutation in String

Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string’s permutat...

2017-05-07 15:04:59

阅读数 221

评论数 0

LeetCode575. Distribute Candies

Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of t...

2017-05-07 15:02:53

阅读数 197

评论数 0

LeetCode42. Trapping Rain Water

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining...

2017-04-22 13:33:58

阅读数 223

评论数 0

LeetCode34. Search for a Range

Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’s runtime complexi...

2017-04-22 11:18:46

阅读数 134

评论数 0

LeetCOde33. Search in Rotated Sorted Array

Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You ar...

2017-04-22 10:43:34

阅读数 142

评论数 0

LeetCode31. Next Permutation

Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possib...

2017-04-21 21:04:01

阅读数 156

评论数 0

LeetCode25. Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.k is a positive integer and is less than or equal to...

2017-04-21 11:27:36

阅读数 152

评论数 0

LeetCode24. Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head.For example, Given 1->2->3->4, you should return the list as 2->1...

2017-04-21 09:28:12

阅读数 199

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭