QiNiuUtil implements InitializingBean { public String upload(String key, String url) throws IOException { if (checkExist(key)) return domain + key; byte[] bytes = Request.Get(url).execute().returnContent().asBytes(); return upload(key, bytes); }  String getUpToken(String key); String upload(String key, String url); String upload(String key, byte[] bytes); @Override void afterPropertiesSet(); Runnable deleteByThread(final List<String> listImage); void deleteByList(List<String> list); void fileList(String prefix); void deleteFileList(String prefix); void test(); @Getter
    public BlockingQueue<List<String>> deleteBlockingDeque; }
@Test public void upload() throws Exception { String key = "sign=deeac03cc1ea15ce41eee00186013a25/ef943c6d55fbb2fb9ec7f6ab474a20a44723dc12.jpg"; String url = "http: String resultUrl = domain + key; Assert.assertEquals(resultUrl, qiNiuUtil.upload(key, url)); }