mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-16 14:13:46 +08:00
1.修改包结构为cn.keking,
2.新增压缩包内文件名称排序
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package cn.keking.utils;
|
||||
|
||||
import cn.keking.param.ReturnResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 读取类文本文件
|
||||
* @author yudian-it
|
||||
* @date 2017/12/13
|
||||
*/
|
||||
@Component
|
||||
public class SimTextUtil {
|
||||
@Value("${file.dir}")
|
||||
String fileDir;
|
||||
@Autowired
|
||||
DownloadUtils downloadUtils;
|
||||
|
||||
public ReturnResponse<String> readSimText(String url, String fileName){
|
||||
ReturnResponse<String> response = downloadUtils.downLoad(url, "txt", fileName);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user