![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题
ccl_776
这个作者很懒,什么都没留下…
展开
-
MySQL密码修改问题
在修改mysql密码时,修改不生效后来才发现在mysql5.7以下版本就修改authentication_stringupdate mysql.user set authentication_string=password('123456') where user='root' and host='localhost';在mysql5.7以上版本就修改passwordupdate mysql.user set password=password('123456') where user=原创 2021-04-19 17:19:59 · 101 阅读 · 0 评论 -
Java出现 java.lang.NullPointerException
Java空指针异常今天遇到了两种空指针异常,记录一下equals被判断值不能为nullString str = null;System.out.println(str.equals("1234");被判断不能为null,应该改为String str = null;System.out.println("1234".equals(str);循环数组不能为nullString[] arrays = null;for (int i = 0; i < arrays.length;原创 2021-04-16 22:03:28 · 183 阅读 · 0 评论 -
错误: 找不到或无法加载主类 Demo01.class
在运行java demo01时出现错误错误: 找不到或无法加载主类 Demo01.class解决办法:把后缀名.class去掉如果类文件来自于某个包,例如 package xxx.xxx; 这个时候需要退换目录到包外执行,并带上包名。比如:我的demo01放在com.ccl包下,运行时写java com.ccl.demo01...原创 2021-02-06 14:42:21 · 2089 阅读 · 0 评论 -
安装docker出现错误:需要:container-selinux >= 2:2.74
安装docker出现以下错误yum install docker-ce docker-ce-cli containerd.io--> 解决依赖关系完成错误:软件包:3:docker-ce-20.10.2-3.el7.x86_64 (docker-ce-stable) 需要:container-selinux >= 2:2.74错误:软件包:docker-ce-rootless-extras-20.10.2-3.el7.x86_64 (docker-ce-stable原创 2021-01-23 22:08:14 · 8507 阅读 · 3 评论