posted @ 2019-10-15 11:15
随笔分类 - JAVA
摘要:错误概要: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/apache/vel
阅读全文
摘要:/** * 判断文件是否存在 * @param remoteFileName * @return * 2018年11月23日 */public static Boolean doesObjectExist(String remoteFileName) { // endpoint以杭州为例,其它reg
阅读全文
posted @ 2019-08-01 15:53
摘要:ServletOutputStream out = null; InputStream inputStream = null; try { // 获取外部文件流 URL url = new URL(path); HttpURLConnection conn = (HttpURLConnection)
阅读全文
posted @ 2019-08-01 14:43
摘要:@Override public OutputStream watermark1(String ossURL, String logoOsskey, HttpServletResponse response) { lock.lock(); OutputStream os = null; InputS
阅读全文
posted @ 2019-08-01 14:42
摘要:new File("文件绝对地址").delete();
阅读全文
posted @ 2019-08-01 10:33
摘要:在java中获得文件的路径在我们做上传文件操作时是不可避免的。web 上运行1:this.getClass().getClassLoader().getResource("/").getPath();this.getClass().getClassLoader().getResource("").g
阅读全文
posted @ 2019-08-01 10:32
浙公网安备 33010602011771号