2011-11-09 174 views
-1

我安裝了acegi。Grails 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 

感謝

+1

你確定插件安裝正確嗎?你可以運行'grails list-plugins -installed'並告訴我們acegi是否存在? – Antoine

+3

任何你使用插件的原因[在它的信息頁面上](http://grails.org/plugin/acegi)'此插件上的開發已停止。鼓勵您使用新的Spring Security Core插件,而不是Grails安全插件,並且將會主動維護。 ' –

+2

@ user1024858有點耐心;你不能在15分鐘內*期待*免費的幫助。 –

回答

2

最近我有同樣的問題,就像一個評論說,你真的不希望使用的acegi-插件,你想要使用Spring security core plugin

提示: 如果您想要散列和/或加鹽密碼this是一個很好的教程!

祝你好運!