【异常】MyBatis提示Cause: java.sql.SQLSyntaxErrorException: columna desconocida 'forbid_time' en 'field list'

1. Contenido del error

### 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'

2. Descripción del error

El campo forbid_time de una tabla MySQL se define en ScenariosConfigMapper, pero si no se encuentra en la base de datos, se informará el error anterior.

Tres, resolución de errores

Simplemente agregue el campo forbid_time directamente en una tabla MySQL

Supongo que te gusta

Origin blog.csdn.net/wstever/article/details/130422951
Recomendado
Clasificación