随笔分类 - springboot
摘要:简单粗暴的脚本 #! /bin/bash # 获取进程号 pid=`ps aux | grep "java -jar" | grep -v "grep" |awk '{print $2}'` echo ${pid} if [[ $pid -gt 0 ]];then `kill -9 $pid` fi
阅读全文
摘要:# 发送邮件配置 spring.mail.protocol=smtps # 配置 smtp 服务器地址 spring.mail.host=smtp.163.com #服务器的端口 spring.mail.port=465 # 配置邮箱用户名 spring.mail.username=xxx@163.
阅读全文
摘要:普通启动,关闭当前窗口,程序关闭(不推荐使用) java -jar xxx.jar 后台启动命令 nohup java -jar xxx.jar > nohup.out 2>&1 & 后台启动命令将日志文件放到黑洞中 nohup java -jar xxx.jar > /dev/null 2>&1
阅读全文
摘要:最近在使用springboot过程中用到了mybatis-plus ,springboot版本是2.3.1.RELEASE,mybatis-plus 版本3.2.0。 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-p
阅读全文

浙公网安备 33010602011771号