List<String> stringList = objectList.stream() .map(Object::toString) .collect(Collectors.toList());
Category : 编程
Java自定义错误
@ControllerAdvicepublic class CustomHandle {@ResponseBody@ExceptionHandler(MethodArgumentNotValidException.class)public String methodArgu...
Linux通过定时任务来备份mysql数据库
1.启动cron服务检查是否已启动service crond status如未启动,则启动,代码如下:service crond start2.添加文件进入 /var/spool/cron目录,按照用户名添加文件,如root用户则添加文件名为 root 的文件然后填写你需要...
正则表达式中的LastIndex概念
var str = "123#abc"; var re = /abc/ig; console.log(re.test(str)); //输出ture console.log(re.test(str)); //输出false console.log(re....
mysql优化相关笔记
SHOW PROCESSLIST;SHOW FULL PROCESSLIST;SHOW VARIABLES LIKE '%max_connections%';SHOW STATUS LIKE '%Connection%'; 设置全局最大连接数set global max_c...