![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
c_chengzipi813
这个作者很懒,什么都没留下…
展开
-
2021-03-19
流的安全关闭 安全测试问题 Unreleased Resource: Streams 先创建先关闭,每个流单独关闭 public static void downloadLocal(String filePath, HttpServletResponse response) { InputStream inStream = null; OutputStream outStream = null; try { inStream = new FileInputStream(filePath)原创 2021-03-19 16:01:18 · 263 阅读 · 0 评论 -
Object转换成String类型
Object转换成String类型 Object为null 采用类型转换(String)object方法 Object不为null 采用String.valueOf(Object)原创 2021-03-18 16:16:57 · 151 阅读 · 0 评论