上传gif图片,抛出异常为数组越界ArrayIndexOutOfBoundsException 在上传gif图片时,在ImageIO.read方法抛出数组越界异常,经确认为jdk的BUG。 https://bugs.openjdk.java.net/browse/JDK-7132728