我试图将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,编译。错误仍然存在。
答案 0 :(得分:0)
尝试这种方式:
compile ":spring-security-core:2.0-RC3"
compile(":spring-security-rest:1.4.0.RC3") {
excludes 'spring-security-core'
}