【发布时间】:2014-10-04 13:23:09
【问题描述】:
刚开始学习 Grails。我想使用spring security插件所以我在BuildConfig.groovy中复制以下内容
plugins {
…
compile ':spring-security-core:2.0-RC4'
…
}
如此处所述http://grails.org/plugin/spring-security-core。
之后,我执行grails compile,因此会出现一条消息通知我插件已正确安装。然后我输入grails s2-quickstart app.ejem Person Authority,再次,一切正常。但是当我运行该应用程序时,我发现了以下错误:
|Loading Grails 2.4.3
|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
...........
|Compiling 4 source files
..............................
|Running Grails application
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Error |
2014-08-11 18:02:51,924 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table person_authority drop constraint FK_7d2mdh76otecbaoaq5y9p12ar if exists
Error |
2014-08-11 18:02:51,935 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabla "PERSON_AUTHORITY" no encontrada
Table "PERSON_AUTHORITY" not found; SQL statement:
alter table person_authority drop constraint FK_7d2mdh76otecbaoaq5y9p12ar if exists [42102-176]
Error |
2014-08-11 18:02:51,936 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table person_authority drop constraint FK_kdi2d7ujicv663k0h6mv85jx3 if exists
Error |
2014-08-11 18:02:51,981 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabla "PERSON_AUTHORITY" no encontrada
Table "PERSON_AUTHORITY" not found; SQL statement:
alter table person_authority drop constraint FK_kdi2d7ujicv663k0h6mv85jx3 if exists [42102-176]
|Server running. Browse to http://localhost:8080/ejem
当我检查 url 时一切正常,但注销控制器显示错误 405 页面。当我检查 /dbconsole 时,所有表似乎都是正确的,如果我在 Bootstrap.groovy 文件中设置了一些用户......这是某种错误吗?
问候。
【问题讨论】:
标签: spring grails spring-security