spring security rest plugin创建bean的错误

时间:2014-07-01 04:41:24

标签: grails spring-security grails-plugin

我试图将spring security rest插件集成到我们的webapp中。已经安装了spring安全插件。

我将这些添加到构建配置

compile ":spring-security-core:2.0-RC3"
compile ":spring-security-rest:1.4.0.RC3", {
    excludes: 'spring-security-core'
}

现在我收到了这个错误:

Error creating bean with name 'com.odobo.grails.plugin.springsecurity.rest.RestOauthController': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityRestRestOauthService': Initialization of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition

我已经尝试过grails clean,编译。错误仍然存​​在。

1 个答案:

答案 0 :(得分:0)

尝试这种方式:

compile ":spring-security-core:2.0-RC3"
compile(":spring-security-rest:1.4.0.RC3") {
    excludes 'spring-security-core'
}