学习中的坑
samll_pebble
keep learning
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java.lang.ExceptionInInitializerError Caused by:Repeated column in mapping for entity:(should be)
java.lang.ExceptionInInitializerErrorCaused by:Repeated column in mapping for entity:(should be mapped with insert=“false” update=“false”)这是有关外键的问题,所以首先找到两张关系表的外键外键属于关系型数据库中的内容,在Java实体中不用定义其属性,所以...原创 2019-03-14 13:29:33 · 338 阅读 · 0 评论 -
插入排序,下标越界
今天在写插入排序时,始终报下标越界的错误,检查了几遍,发现并运算的顺序写错了public static void straightInsertSort(int[] arr){ int i,j,temp; for(i=1;i<arr.length;i++){ if(arr[i]<arr[i-1]){ temp = arr[i]; for (j=i-1; *...原创 2019-03-24 21:58:25 · 439 阅读 · 1 评论 -
动态代理中的强制转换问题
public class Client { public static void main(String[] args) { final Product product = new Product(); IProduct proxyProduct = (IProduct)Proxy.newProxyInstance(product.getClass().g...原创 2019-06-11 23:32:50 · 1846 阅读 · 1 评论
分享