一切福田,不離方寸,從心而覓,感無不通。

java单应用重启脚本

 

龙生   15 Mar 2022
View Details

正则表达式集锦

数字校验
1.整数:^[0-9]*$
2.n位的整数:^\d{n}$
3.至少n位的整数:^\d{n,}$
4.m-n位的整数:^\d{m,n}$
5.零和非零开头的整数:^(0|[1-9][0-9]*)$
6.非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$
7.带1-2位小数的正数或负数:^(-)?\d+(.\d{1,2})?$

龙生   12 Mar 2022
View Details

win10电脑关机很慢怎么办?

按组合键win+r打开运行窗口,输入gpedit.msc。 点击确定,打开本地组策略编辑器。 依次打开计算机配置,管理模板,系统。 在右边找到关机选项,双击打开,打开关闭会阻止或取消关机的应用程序的自动终止功能。 点击选择已启用,点击确定即可。 from:https://jingyan.baidu.com/article/d8072ac4081dbdac94cefd3d.html

龙生   11 Mar 2022
View Details

C#与Java互通AES算法加密解密

利用AES加密算法对报文进行加密解密,实现C#与Java互通,网上查了一堆也许是因为版本的原因都用不了,于是还是静心下来自己写个

龙生   11 Mar 2022
View Details

里氏替换原则

里氏替换原则(Liskov Substitution Principle,LSP)由麻省理工学院计算机科学实验室的里斯科夫(Liskov)女士在 1987 年的“面向对象技术的高峰会议”(OOPSLA)上发表的一篇文章《数据抽象和层次》(Data Abstraction and Hierarchy)中提出:继承必须确保超类拥有的性质在子类中仍然成立(Inheritance should ensure that any property proved about supertype objects also holds for subtype objects)。也就是说:当一个子类的实例能够替换任何父类的实例时,它们之间才具有is-A关系。

龙生   09 Mar 2022
View Details

解决go: go.mod file not found in current directory or any parent directory; see 'go help modules'

当go build的时候报错如下(或者golang的版本从1.6升级到1.16之后报错如下)
go module是go官方自带的go依赖管理库,在1.13版本正式推荐使用
go module可以将某个项目(文件夹)下的所有依赖整理成一个 go.mod 文件,里面写入了依赖的版本等 使用
go module之后我们可不用将代码放置在src下了 使用 go module 管理依赖后会在项目根目录下生成两个文件 go.mod 和go.sum

龙生   08 Mar 2022
View Details

Compare the Best Domain Hosting of 2022

Compare the Best Domain Hosting of 2022
Search our expert reviews to compare the leading domain hosting companies. Learn more about their special offers & get your site up and running, today.

https://www.top10.com/hosting/domainhosting-comparison

龙生   04 Mar 2022
View Details