Showing
1 changed file
with
2 additions
and
2 deletions
@@ -21,7 +21,7 @@ import java.util.ArrayList; | @@ -21,7 +21,7 @@ import java.util.ArrayList; | ||
21 | @RestController | 21 | @RestController |
22 | @RequestMapping(path = "/show") | 22 | @RequestMapping(path = "/show") |
23 | public class ShowCtrl { | 23 | public class ShowCtrl { |
24 | - | 24 | + private static final Logger logger = LoggerFactory.getLogger(ShowCtrl.class); |
25 | // private static final String DEFAULT_DIR = "E:\\图片\\demo.txt"; | 25 | // private static final String DEFAULT_DIR = "E:\\图片\\demo.txt"; |
26 | private static final String DEFAULT_DIR = "/home/jack/makesample/zhurui/shoes/ali_similar.info"; | 26 | private static final String DEFAULT_DIR = "/home/jack/makesample/zhurui/shoes/ali_similar.info"; |
27 | 27 | ||
@@ -110,7 +110,7 @@ public class ShowCtrl { | @@ -110,7 +110,7 @@ public class ShowCtrl { | ||
110 | public Object readPhotoBytes(@RequestParam("file") String filePath) { | 110 | public Object readPhotoBytes(@RequestParam("file") String filePath) { |
111 | try { | 111 | try { |
112 | String s = URLDecoder.decode(filePath, "UTF-8"); | 112 | String s = URLDecoder.decode(filePath, "UTF-8"); |
113 | - logger.info("readPhotoBytes --filePath {}" , filePath ); | 113 | + logger.info("readPhotoBytes --文件路径filePath {}" , filePath ); |
114 | return showSer.readPhotoBytes( s); | 114 | return showSer.readPhotoBytes( s); |
115 | } catch (IOException e) { | 115 | } catch (IOException e) { |
116 | e.printStackTrace(); | 116 | e.printStackTrace(); |
-
Please register or login to post a comment