我安装了acegi。
所以,然后我运行grails create-auth-domains User Role Requestmap
,它没有创建任何域类。为什么呢?
这是我的控制台节目:
E:\Grails\Linh> grails create-auth-domains User Role Requestmap
Welcome to Grails 1.3.7 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: D:\Grails\grails-1.3.7
Base Directory: E:\Grails\Linh
Resolving dependencies...
Dependencies resolved in 715ms.
Running script C:\Users\My\.grails\1.3.7\projects\Linh\plugins\acegi-0.5.3.2\scripts\CreateAuthDomains.groovy
Environment set to development
[copy] Copying 1 resource to E:\Grails\Linh
[unjar] Expanding: E:\Grails\Linh\grails-shared-files.jar into E:\Grails\Linh
[delete] Deleting: E:\Grails\Linh\grails-shared-files.jar
[copy] Copying 1 resource to E:\Grails\Linh
[unjar] Expanding: E:\Grails\Linh\grails-app-files.jar into E:\Grails\Linh
[delete] Deleting: E:\Grails\Linh\grails-app-files.jar
由于
答案 0 :(得分:2)
我最近遇到了同样的问题,就像其中一条评论所说,你真的不想使用acegi-plugin,你想使用Spring security core plugin
提示: 如果您想要对密码进行哈希和/或加盐,this是一个很棒的教程!
祝你好运!