文件操作 File file = FileUtil.file("d:/test.txt");FileWriter writer = new FileWriter(file);writer.write("Hello World!");writer.close(); 加密解密 String plainText = "Hello World!";String key = "myKey";CryptoUtil.md5Hex(plainText, key
- 文件操作
File file = FileUtil.file("d:/test.txt");
FileWriter writer = new FileWriter(file);
writer.write("Hello World!");
writer.close();
- 加密解密
String plainText = "Hello World!";
String key = "myKey";
CryptoUtil.md5Hex(plainText, key);
- 数据库操作
Db db = Db.use().queryOne("select * from user where id=?", 1);
- 日期时间操作
Date now = DateUtil.date();
Date tomorrow = DateUtil.offsetDay(now, 1);
- 网络操作
NetUtil.getResponse(url);
- 字符串操作
StrUtil.format("{} {}", "hello", "world"); // "hello world"