08 2022 档案
Incompatible types.
摘要:Incompatible types. xxxx。。。 一般检查代码没有问题,但就是报错了,就是导入的依赖包有问题。检查一下包 阅读全文
posted @ 2022-08-28 13:24 阿霖找BUG 阅读(118) 评论(0) 推荐(0)
Integer.parseInt()
摘要:java 中的Integer.parseInt()强制转换成int类型 eg:String s=7; int i=Integer.parseInt(s); System.out.println(i+1); 结果为4; String s=7; System.out.println(i+1); 结果为7 阅读全文
posted @ 2022-08-26 23:45 阿霖找BUG 阅读(120) 评论(0) 推荐(0)
idea中等于是,换算
摘要:等于 .var 换算 .cast 阅读全文
posted @ 2022-08-26 21:00 阿霖找BUG 阅读(28) 评论(0) 推荐(0)
打包jar包,和运行
摘要:如果有MANIFEST.MF这个文件就要删除,第一次没有 File>Project Structure 第一种打包成一个jar包和多个依赖包 统一打包在一起: 点击你刚刚生成的jar包运行一下: 生成jar包的位置: 运行jar包: 按下Shift右键 输入命令 java -jar YiMall.j 阅读全文
posted @ 2022-08-26 00:32 阿霖找BUG 阅读(66) 评论(0) 推荐(0)
Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @76ccd017
摘要:原因:JDK版本太高,与项目中使用的jdk版本不对应 解决:降低JDK版本 file>Project Structure>Project 阅读全文
posted @ 2022-08-14 20:38 阿霖找BUG 阅读(10309) 评论(0) 推荐(1)