1 Star 0 Fork 60

laich/SpringBootCMS

forked from 樱木/SpringBootCMS 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
TestFile.java 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
carterhe 提交于 2023-01-10 11:04 +08:00 . 更新到最新版本代码
package ssm;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
/**
* @description :
* @author : heyewei
* @create : 2020年10月21日
**/
public class TestFile {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
// List<String> lines = FileUtils.readLines(new File("E:\\新建文本文档 (18).txt"));
// String newString = "";
// for(String line : lines){
// if(StringUtils.isNotBlank(line)){
// String first = line.substring(0,1);
// if(StringUtils.isNotBlank(first)){
// String newline = line.substring(1);
// newString+=newline+"\r\n";
// }else{
// newString+=line+"\r\n";
// }
// }
// }
// FileUtils.write(new File("E:\\新建文本文档 (18).txt"), newString);
// Date date = DateUtils.addDays(new Date(), 158);
// System.out.println(DateFormatUtils.format(date, "yyyy-MM-dd"));
System.out.println("/a".matches("^/\\w+(/\\w+)*$"));
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/laich/SpringBootCMS.git
git@gitee.com:laich/SpringBootCMS.git
laich
SpringBootCMS
SpringBootCMS
master

搜索帮助