会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
洋洋兮若江河
或许不知是梦的缘故,流离之人追逐幻影
博客园
首页
新随笔
联系
订阅
管理
2022年7月13日
jar包下不下来
摘要: 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 洋洋兮若江河
阅读(68)
评论(0)
推荐(0)
2020年12月24日
redis
摘要: redis切换db@Componentpublic class RedisDBChangeUtil { @Autowired private StringRedisTemplate redisTemplate; public void setDataBase(int num) { LettuceCo
阅读全文
posted @ 2020-12-24 15:02 洋洋兮若江河
阅读(219)
评论(0)
推荐(0)
2020年12月14日
查看nohup.out 日志文件
摘要: 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 洋洋兮若江河
阅读(7883)
评论(0)
推荐(0)
2020年7月28日
byte最高位
摘要: /** * 将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 洋洋兮若江河
阅读(288)
评论(0)
推荐(0)
2019年8月9日
springboot配置多数据源
摘要: 1.yml配置:
阅读全文
posted @ 2019-08-09 11:52 洋洋兮若江河
阅读(273)
评论(0)
推荐(0)
2019年7月11日
java读取apk、ipa包名、版本名、版本号等信息
摘要: package com.gymexpress.exerciseservice.controller;import com.gymexpress.commonmodel.controller.BaseController;import com.gymexpress.commonmodel.model.
阅读全文
posted @ 2019-07-11 11:24 洋洋兮若江河
阅读(1298)
评论(0)
推荐(0)
2019年7月10日
微信公众号配置
摘要: 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 洋洋兮若江河
阅读(184)
评论(0)
推荐(0)
2019年7月3日
List转Map
摘要: List<Apple> appleList = new ArrayList<>();//存放apple对象集合 1. List转Map id为key,apple对象为value,可以这么做: /** * List -> Map * 需要注意的是: * toMap 如果集合对象有重复的key,会报错D
阅读全文
posted @ 2019-07-03 15:00 洋洋兮若江河
阅读(637)
评论(0)
推荐(0)
公告