错误
与君灬共勉
这个作者很懒,什么都没留下…
展开
-
非空判断
在给前端传数组时,要判断是否为空,如果为空就不传错误代码:w.writeInt(headerLengths);w.writeBytes(header);改正w.writeInt(headerLengths);if(header!=null){w.writeBytes(header);}原创 2017-09-19 15:32:33 · 420 阅读 · 0 评论 -
修改代码,没有重启有时候会出错的
在没有重新启动数据库的情况下,在传值的时候就添加传值得数据,然后在发协议的时候,这个协议就会报错错误代码: // code=1304 private int imageid; private byte[] imageArray;//上传关卡图片信息 // function public GetUpLoadIMGSTOC(int imageid,byte[] imageArray原创 2017-09-19 15:31:27 · 305 阅读 · 0 评论 -
添加数据时,内存数据不能更新
添加数据时,内存数据不能更新在添加新的数据时,要先想好要不要添加内存,如果要添加内存,那些要添加内存数据。然后再写代码,让所有需要的都添加上内存错误: // 获得上传的自制关卡的信息 UploadStubbleBean uploadInfo = new UploadStubbleBean(name, uploadName,printArray); // 上传自制关卡信原创 2017-09-19 15:28:49 · 438 阅读 · 0 评论 -
空指针
传值报空指针在给前端传数据时,如果传的是数组类型,就要在接收到数组的长度的时候在给数组声明长度,不然就会报空指针错误实例 if (uploadArray != null && uploadArray.size() > 0) { this.ptintLength = (byte) uploadArray.size(); printArray = new Print_Struc原创 2017-09-19 15:27:20 · 311 阅读 · 0 评论 -
错误:org.springframework.beans.factory.BeanCreationException
严重: Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuService' defined in class path resource [applicationContext.xml]: Error set...原创 2018-06-12 15:33:13 · 713 阅读 · 0 评论