我拆过的坑cycx

查询一下!

nodejs 安装express最简洁的方法 三步

vscode常用快捷键,不断添加!

springboot使用CommonsMultipartResolver上传报错java.lang.ClassCastException

java.lang.ClassCastException: java类型转换异常解决方案

 java.lang.ClassCastException: class org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream cannot be cast to class java.util.zip.ZipFile$ZipFileInputStream

 (org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStre

POI-处理大EXCEL文件 00M

 

package cn.51crh.web;

import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

u.getClass().getDeclaredFields();

作者:admin | 分类:未分类 | 浏览:278 | 评论:0

FileOutputStream(file);

{
    FileOutputStream out = FileOutputStream(file)wb.write(out)} (IOException e) {

java: 程序包jdk.nashorn.internal.ir不存在

实习后的第一个项目,git同事的代码后突然间项目不能运行了,报标题的错误。



百度搜索之后发现应该是jdk版本问题。依次点击把进jdk11改成8就可以了。


 


 之后有时间的话也会写一些初学者(笔者)在工作中遇到的问题


报错Cannot get a text value from a numeric cell。

    导入导出的功能,需要读取一个xls的excel表格里面的数据并把这些数据写入数据库,在我写好并测试功能的时候报错Cannot get a text value from a numeric cell。


 


原因:上网查了一下相关资料,发现是因为excel表里的数据如果是纯数字123456这类的话,在读取xls文件的cell的时候,cell的type会是CELL_TYPE_NUMER

提示java: 不再支持源选项 5。请使用 6 或更高版本。

<!-- 指定jdk版本 -->

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-

cannot resolve plugin org.mortbay.jetty:maven-jetty-plugin阿里云仓库对应地址没有jetty插件

 

之前按照下面这个在pom.xml中配置jetty插件,总是报错说阿里云仓库没有

 <!--jetty插件-->
        <plugin>
          <groupId>org.mortbay.jetty</gro

Mybatis中的模糊查询

 

今天下午做的一个功能,要用到模糊查询,字段是description,刚开始我的写法用的是sql中的模糊查询语句,


但是这个有问题,只有将字段的全部值传入其中,才能查询,所以不是迷糊查询。

后来经过搜索,发现要加上一个concat字段,要先将字符串拼接后,才能实现模糊查询。

通.png 作者:admin | 分类:未分类 | 浏览:282 | 评论:0

看到+new Date(),有点不熟悉,所以特此记录一下

    看到+new Date(),有点不熟悉,所以特此记录一下;



js在某个数据类型前使用‘+’,这个操作目的是为了将该数据类型转换为Number类型,如果转换失败,则返回NaN;

例子 :+&#39;2&#39;+1 // 3
 &nbsp; &nbsp; &nbsp; +[1] &nbsp; // NaN
复制代码

<< 1 2 > >>

Powered By Z-BlogPHP 1.7.3

Copyright Your WebSite.Some Rights Reserved.