com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:未知列' this_.enabled'在'字段列表'

时间:2017-01-24 06:45:33

标签: mysql spring-mvc grails spring-security gorm

当我运行一个通过grails localhost上的spring框架过滤的url时, 它显示为,

Error:
Caused by: org.springframework.jdbc.BadSqlGrammarException:
  Hibernate operation: could not extract ResultSet;
  bad SQL grammar [n/a];
nested exception is
  com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
     Unknown column 'this_.enabled' in 'field list'

如果我从我的域类中删除启用的变量,它将显示为

Error:
org.springframework.security.authentication.InternalAuthenticationServiceException:
    No such property: enabled for class: com.voonik.User.

有没有解决办法?

0 个答案:

没有答案