文章分类 - java
java工具类 实现方案 疑难杂症
摘要:foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。foreach元素的属性主要有 item,index,collection,open,separator,close。 item表示集合中每一个元素进行迭代时的别名, index指定一个名字,用于表示在迭代过程中,每次迭代
阅读全文
摘要:1.代码如下: import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputSt
阅读全文
摘要:1.这个情况要说明一下,由于有一个分支和一个主干代码,分别在两个工作空间,每次切换时都需要重新maven clean 和install ,有时虽然项目编译不报错,但是服务起不来,就报错如下: ①Could not autowire field: private org.springframework
阅读全文
摘要:1.解压压缩包,目前zip的压缩包可以解压,rar后缀的最新版本的不支持解压,官方目前好像也没给出好办法。 import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; im
阅读全文
摘要:1.将文件内容读取并写到新文件中,(windows路径) 2.以上代码 在eclipse里右键运行即可,源文件的内容必须存在哦! ~路漫漫其修远兮 吾将上下而求索~
阅读全文
摘要:if(rDataVal instanceof String && ((String) rDataVal).length()>15) { //保存Excel时防止第16位数字 被置0 rDataVal = "\t"+rDataVal+"\t"; }else if(rDataVal instanceof
阅读全文

浙公网安备 33010602011771号