SQL: insert into operation_log_new (oper_id, oper_modul, oper_type, oper_desc, oper_requ_param, oper_resp_param, oper_user_id, oper_user_name, oper_method, oper_uri, oper_ip, oper_create_time, oper_var) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'oper_user_name' cannot be null
; SQL []; Column 'oper_user_name' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'oper_user_name' cannot be null
第一行就有提示operation_log_new 这只是第一个!
根据表名称找到对应的mapper.xml,寻找具体的sql语句insert*******,再看看报错的列名是否涉及其他表,我这还有涉及到operation_log,因为在本地可以为所欲为(不影响项目运转的前提下)!
我把表字段设置为默认为空!