摘要: 1.maven中的settings.xml文件中的镜像资源配置 <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/< 阅读全文
posted @ 2022-07-13 14:51 洋洋兮若江河 阅读(53) 评论(0) 推荐(0) 编辑
摘要: redis切换db@Componentpublic class RedisDBChangeUtil { @Autowired private StringRedisTemplate redisTemplate; public void setDataBase(int num) { LettuceCo 阅读全文
posted @ 2020-12-24 15:02 洋洋兮若江河 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1.查看实时日志: tail -f nohup.out 2.查看实时日志并检索关键字: tail -f nohup.out | grep "关键字" 3.查看文件最后100行日志: tail -n 100 nohup.out | more 4.分页查看所有日志: cat nohup.out | mo 阅读全文
posted @ 2020-12-14 11:47 洋洋兮若江河 阅读(6262) 评论(0) 推荐(0) 编辑
摘要: /** * 将byte转换为一个长度为8的byte数组,数组每个值代表bit */public static byte[] replaceSpace(Byte b){ byte[] array=new byte[8]; for (int i = 7; i >=0 ; i--) { //& 运算规则: 阅读全文
posted @ 2020-07-28 10:28 洋洋兮若江河 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1.yml配置: 阅读全文
posted @ 2019-08-09 11:52 洋洋兮若江河 阅读(244) 评论(0) 推荐(0) 编辑
摘要: package com.gymexpress.exerciseservice.controller;import com.gymexpress.commonmodel.controller.BaseController;import com.gymexpress.commonmodel.model. 阅读全文
posted @ 2019-07-11 11:24 洋洋兮若江河 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: package com.example.treadmill.util;import java.security.cert.CertificateException;import java.security.cert.X509Certificate;import javax.net.ssl.X509T 阅读全文
posted @ 2019-07-10 11:33 洋洋兮若江河 阅读(174) 评论(0) 推荐(0) 编辑
摘要: List<Apple> appleList = new ArrayList<>();//存放apple对象集合 1. List转Map id为key,apple对象为value,可以这么做: /** * List -> Map * 需要注意的是: * toMap 如果集合对象有重复的key,会报错D 阅读全文
posted @ 2019-07-03 15:00 洋洋兮若江河 阅读(596) 评论(0) 推荐(0) 编辑