数据库字段设置问题,这里是文件路径长度不足
# 字段长度不足
原因:
### Error updating database. Cause: java.sql.SQLException: ORA-12899: value too large for column "IFLYYJY"."FILE_UPLOAD"."FILEPATH" (actual: 56, maximum: 50)
### The error may exist in file [/app/tomcat_gps/apache-tomcat-7.0.79/webapps/ifly-web-gps/WEB-INF/classes/com/iflytek/gps/gps/entity/mapper/GPSFileUploadMapper.xml]
### The error may involve com.iflytek.gps.gps.dao.GPSFileUploadMapper.insertFileData-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO FILE_UPLOAD (ID,fileName, fileLength, fileStoreName, filePath, isHandled,createTime) VALUES (?,?, ?, ?, ?, ?,?)
### Cause: java.sql.SQLException: ORA-12899: value too large for column "IFLYYJY"."FILE_UPLOAD"."FILEPATH" (actual: 56, maximum: 50)
修改:
将 FILE_UPLOAD 表中 FILEPATH 字段长度修改为 100 或更长。