严重: Servlet.service() for servlet [springMVC] in context with path [/artemis] threw exception [Handler processing failed; nested exception is java.lang.AbstractMethodError: org.apache.commons.dbcp.DelegatingPreparedStatement.setBlob(ILjava/io/InputStream;J)V] with root cause
java.lang.AbstractMethodError: org.apache.commons.dbcp.DelegatingPreparedStatement.setBlob(ILjava/io/InputStream;J)V
数据库字段为BLOB类型时,PreparedStatement的setBytes(parameterIndex, byte[] )和setBinaryStream(parameterIndex,inputStream,length)
注意:length为文件长度或byte[]长度
都可以存储。