会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
只可远观呢
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2022年3月28日
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-epel.repo; 配置:ID 为 “failovermethod” 的 OptionBinding 不存在
摘要: vim /etc/yum.repos.d/CentOS-epel.repo failovermethod=priority 注释 :wq! 强制保存
阅读全文
posted @ 2022-03-28 13:55 只可远观呢
阅读(1609)
评论(0)
推荐(0)
2022年3月18日
redis安装配置
摘要: # wget http://download.redis.io/releases/redis-6.0.8.tar.gz # tar xzf redis-6.0.8.tar.gz # cd redis-6.0.8 # make# cat redis.conf | grep -v "#" | grep
阅读全文
posted @ 2022-03-18 16:35 只可远观呢
阅读(28)
评论(0)
推荐(0)
2022年3月1日
String面试题
摘要: 1:赋值 String s1 = "123"; String s2 = "123"; System.out.println(s1 == s2); System.out.println(s1.equals(s2)); String字符串属于常量,常量需要进入内存中的字符串常量池(进入常量池规则:如果常
阅读全文
posted @ 2022-03-01 14:41 只可远观呢
阅读(59)
评论(0)
推荐(0)
2021年12月14日
JSONObject排序
摘要: JSONObject json = new JSONObject(); //按照put的先后顺序 JSONObject json = new JSONObject(new LinkedHashMap());
阅读全文
posted @ 2021-12-14 14:37 只可远观呢
阅读(302)
评论(0)
推荐(0)
2021年11月26日
chown: invalid user: ‘mysql:mysql’
摘要: 执行: chown -R mysql:mysql /var/lib/mysql 报错: chown: invalid user: ‘mysql:mysql’ 执行以下命令: chattr -ia /etc/passwdchattr -ia /etc/groupchattr -ia /etc/shad
阅读全文
posted @ 2021-11-26 21:06 只可远观呢
阅读(5452)
评论(1)
推荐(0)
2021年10月30日
String不改变地址的前提下更改值
摘要: public static void main(String[] args) throws Exception { String a = "a"; System.out.println("修改前" + a ); Field value = a.getClass().getDeclaredField(
阅读全文
posted @ 2021-10-30 21:51 只可远观呢
阅读(77)
评论(0)
推荐(0)
结束try代码块
摘要: ok:try { if (true) { System.out.println("?"); break ok; } System.out.println("正常执行");} catch (Exception e) {}
阅读全文
posted @ 2021-10-30 21:13 只可远观呢
阅读(64)
评论(0)
推荐(0)
阿里云服务器部署的java项目发送QQ邮件
摘要: 错误:Couldn’t connect to host, port: smtp.qq.com, 25;原因:阿里云禁用25端口更正:spring: mail: host: smtp.qq.com password: password username: @qq.com protocol: smtp
阅读全文
posted @ 2021-10-30 15:56 只可远观呢
阅读(102)
评论(0)
推荐(0)
上一页
1
2
公告