...
|
...
|
@@ -21,7 +21,7 @@ import java.util.ArrayList; |
|
|
@RestController
|
|
|
@RequestMapping(path = "/show")
|
|
|
public class ShowCtrl {
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(ShowCtrl.class);
|
|
|
// private static final String DEFAULT_DIR = "E:\\图片\\demo.txt";
|
|
|
private static final String DEFAULT_DIR = "/home/jack/makesample/zhurui/shoes/ali_similar.info";
|
|
|
|
...
|
...
|
@@ -110,7 +110,7 @@ public class ShowCtrl { |
|
|
public Object readPhotoBytes(@RequestParam("file") String filePath) {
|
|
|
try {
|
|
|
String s = URLDecoder.decode(filePath, "UTF-8");
|
|
|
logger.info("readPhotoBytes --filePath {}" , filePath );
|
|
|
logger.info("readPhotoBytes --文件路径filePath {}" , filePath );
|
|
|
return showSer.readPhotoBytes( s);
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
...
|
...
|
|