踩坑记录
记录日常遇到过的坑坑
Chaim16
无简介
展开
-
Result Maps collection already contains value for cn.onedawn.mapper.DepartmentMapper.BaseResultMap
标题Result Maps collection already contains value for cn.onedawn.mapper.DepartmentMapper.BaseResultMap原因:我使用了 mybatis-generator 插件生成mapper.xml,生成了两次,插件在mapper.xml后面追加的内容解决方式:把多余的清除就好了...原创 2021-09-30 21:30:43 · 248 阅读 · 1 评论 -
【实操】自定义类加载器、打破双亲委派机制
今天周末在家,看看电影,写写代码来实践一把自定义类加载器、打破双亲委派机制,记录下踩坑自定义类加载器步骤:继承ClassLoader重写findClass方法自定义MyClassLoaderimport java.io.FileInputStream;import java.io.IOException;/** * Created by IntelliJ IDEA * User: yqm02 * Date: 2021/8/22 * Time: 16:14 */public原创 2021-08-22 22:03:41 · 310 阅读 · 0 评论 -
Java类中写了main方法,但是没有run按钮
问题现象原因是我在classpath下面自定义了一个String类而main方法的参数String,要求是JDK自带的java.lang.String类。解决方法就是把classpath下面的String删除,run按钮就出来了原创 2021-08-22 18:13:41 · 1927 阅读 · 2 评论 -
安装多个JDK,出现has been compiled by a more recent version of the Java Runtime (class file version 55.0)
报错如下:Exception in thread “main” java.lang.UnsupportedClassVersionError: com/User has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0at j原创 2021-06-03 10:53:40 · 2297 阅读 · 3 评论