优化、精简代码。使用 @GetMapping、@PostMapping 替换 @RequestMapping
This commit is contained in:
@ -48,8 +48,7 @@ public class SimTextFilePreviewImpl implements FilePreview {
|
||||
private String textData(String baseUrll) throws IOException {
|
||||
File file = new File(baseUrll);
|
||||
if(!file.exists() || file.length() == 0) {
|
||||
String line="";
|
||||
return line;
|
||||
return "";
|
||||
}else {
|
||||
String charset = EncodingDetects.getJavaEncode(baseUrll);
|
||||
System.out.println(charset);
|
||||
|
||||
Reference in New Issue
Block a user