- 博客(2)
- 资源 (7)
- 收藏
- 关注
原创 java路径相关(相对路径,绝对路径,抽象路径)
public static final String WEB_ROOT = System.getProperty("user.dir") + File.separator + "webroot";File file = new File(WEB_ROOT+"\\a.html");System.out.println("相对路径:"+file.getPath());System.out
2014-11-25 10:23:46 3816
解决kafka3.5.1 windows环境下日志写入失败问题
reload4j-1.2.25.jar
重写了DailyRollingFileAppender中关于日志重命名部分
boolean copy(File src, File dst) throws IOException {
try {
InputStream in = new FileInputStream(src);
OutputStream out = new FileOutputStream(dst);
byte[] buf = new byte[8192];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
in.close();
out.close();
return true;
}
2023-11-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人