- 博客(11)
- 收藏
- 关注
原创 java代码发送邮件
一、使用Apache commons email发送邮件参考引用commons-mail组件包 <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-email</artifactId> <version>1.4</version> </dependency>1.发送简单文本邮件
2022-02-11 16:41:34
1234
原创 ps -ef | grep 命令
linux控制台下输入ps -ef | grep 关键字 可以查看启动信息中包含关键字的进程。ps的意思是process status,即进程状态,可以将进程的信息显示出来;grep是查找命令,全称是global regular expression print,即全局正则表达式打印,使用正则表达式搜索文本,并把匹配的行打印出来,使用权限为所有用户,中间的|是管道命令,表示ps命令与grep同时执行。ps -ef | grep java字段含义依次如下:UID:程序被该 UID 所拥有PID:程
2022-01-20 15:28:27
13990
原创 IntelliJ IDEA 自定义注释
IDEA版本:2021.2.21.打开模板设置2.点击最右边的绿色加号 ,添加自定义模板组 ,保存自定义注释模板3.再次点击绿色加号 ,添加动态模板4.模板配置缩写:*模板文本:** * @Title $title$ * @Author CP * @Description //TODO $end$ * @Date $date$ $time$ $param$ * @return $return$ **/展开方式:Enter(在缩写字段后生成模板的快捷键)左下角更
2022-01-19 17:23:44
455
转载 Jenkins - Linux下启动Jenkins报错hudson.WebAppMain#contextDestroyed: Shutting down a Jenkins instance that
报错截图在Linux下直接运行jenkins.war报错,导致启动失败报错原因运行端口已被其他进程占用解决方法换个启动端口就可以啦!转载于:https://www.cnblogs.com/poloyy/p/12777295.html
2021-12-13 11:00:00
626
原创 Json文件解析——JsonReader使用
JsonReader处理字符流对象 public static void main(String[] args){ FileReader reader = null; try { // {"body": [ {"user": "a"}, {"user": "b"}, {"user": "c"}]} reader = new FileReader("d:/user.json");
2021-03-19 10:49:11
2492
原创 Nginx启动失败:错误10013: An attempt was made to access a socket in a way forbidden
Nginx启动失败:错误10013: An attempt was made to access a socket in a way forbidden问题描述:Nginx启动失败,无法访问localhost原因分析:1、进入nginx路径中,start nginx,发现窗口闪过。但是查找不到nginx进程。2、进入 nginx-1.12.1\logs 路径下,打开error.log文件,发现有以下错误日志2021/03/08 09:53:16 [emerg] 1820#11304: bind
2021-03-08 10:28:51
22568
3
原创 npm设置代理
设置代理npm config set proxy=http://127.0.0.1:8087npm config set registry=http://registry.npmjs.org关于https经过上面设置使用了http开头的源,因此不需要设https_proxy了,否则还要增加一句:npm config set https-proxy http://server:port代理...
2019-08-29 17:56:28
315
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人