@Test
public void uploadFile() throws Exception {
FileSystem fileSystem = getFileSystem();
fileSystem.copyFromLocalFile(false,true,new Path("D:\\桌面资料\\新建文件夹\\外汇九段.txt"),new Path("/test.txt"));
}
使用notepad++更改文本文件的编码格式
@Test
public void uploadFile() throws Exception {
FileSystem fileSystem = getFileSystem();
fileSystem.copyFromLocalFile(false,true,new Path("D:\\桌面资料\\新建文件夹\\外汇九段.txt"),new Path("/test.txt"));
}
使用notepad++更改文本文件的编码格式