
java
haikuokuangtu
1-0.9f==0.9f-0.8f? 1:2;
展开
-
ITextRenderer refers to the missing type DocumentException
1、The method createPDF(OutputStream) from the type ITextRenderer refers to the missing type DocumentException异常原因: html代码生成PDF时的异常,通过查看源码,发现是因为没有导入相应的jar包,“com.lowagie.text”,在maven仓库可以搜索到:https://mvnrepository.com/artifact/org.jsoup/jsoup/1.13.1。 2、html代码生原创 2021-01-14 09:59:00 · 701 阅读 · 1 评论 -
java斜杠“/”转反斜杠“\”
public static void main(String[] args) { String b = "d:/aa/a.txt"; System.out.println(b.replaceAll("/", "\\\\")); } 自己在获取文件创建时间时遇到的路径问题,斜杠时创建时间始终为空,需要转换为 d:\aa\a.txt,写例子的时候一般是:...原创 2019-06-03 16:18:02 · 2240 阅读 · 0 评论