spring-security-core:2.0-RC5 出错

spring-security-core:2.0-RC5 is giving error

我正在使用 Grails 2.4.2。之前我使用 Grails 2.1.1Spring Security 1.2.7.3。在那里它对我很好用。但是当我在 spring-security-core:2.0-RC5 安装插件 Grails 2.4.2 时,它给出了这个错误:

Compilation error: startup failed:
D:\projects\FreightSystem\grails-app\conf\Config.groovy: 127: unable to resolve class grails.plugins.springsecurity.SecurityConfigType
 @ line 127, column 1.
   import grails.plugins.springsecurity.SecurityConfigType

有人可以帮我解决这个问题吗?下面是我的 Config.groovy :

// Added by the Spring Security Core plugin:
grails.plugin.springsecurity.userLookup.userDomainClassName = 'com.Users'
grails.plugin.springsecurity.userLookup.authorityJoinClassName = 'com.UsersRole'
grails.plugin.springsecurity.authority.className = 'com.Role'
grails.plugin.springsecurity.requestMap.className = 'com.Requestmap'
grails.plugin.springsecurity.securityConfigType = 'Requestmap'
grails.plugin.springsecurity.controllerAnnotations.staticRules = [
    '/':                ['permitAll'],
    '/index':           ['permitAll'],
    '/index.gsp':       ['permitAll'],
    '/assets/**':       ['permitAll'],
    '/**/js/**':        ['permitAll'],
    '/**/css/**':       ['permitAll'],
    '/**/images/**':    ['permitAll'],
    '/**/favicon.ico':  ['permitAll']
]

import grails.plugins.springsecurity.SecurityConfigType

grails.plugins.springsecurity.securityConfigType = SecurityConfigType.Requestmap

嗯,是

grails.plugin.springsecurity.SecurityConfigType

但不是

grails.plugins.springsecurity.SecurityConfigType

(从 plugin 中删除 s。包已更改)

更新

就像@BurtBeckwith 评论的那样,迁移文档中提到了它。请参阅 https://grails-plugins.github.io/grails-spring-security-core/guide/newInV2.html

中的 软件包更改