mirror of
https://github.com/kekingcn/kkFileView.git
synced 2026-04-19 22:58:39 +00:00
25 lines
652 B
Java
25 lines
652 B
Java
package com.yudianbank.utils;
|
|
|
|
import com.yudianbank.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;
|
|
}
|
|
}
|