一、报错内容
### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'forbid_time' in 'field list'\n
### The error may exist in com/xxx/mapper/ScenariosConfigMapper.java (best guess)
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT id,utilization,forbid_time,status,create_by,create_time,update_by,update_time FROM app_scenarios_config ORDER BY create_time DESC
### Cause: java.sql.SQLSyntaxErrorException:
Unknown column 'forbid_time' in 'field list'\n; bad SQL grammar [];
nested exception is java.sql.SQLSyntaxErrorException:
Unknown column 'forbid_time' in 'field list'
二、报错说明
在ScenariosConfigMapper中定义了MySQL某表的forbid_time字段,但是在数据库中找不到就会报如上错误
三、报错解决
直接在MySQL某表中添加forbid_time字段即可