据我所知,spring-security-core:3.0.0.M1插件doesn不会构建在3.1.0.RC1中。spring-security-core:3.0.0.M1插件在grails 3.0.8中生成,但不是3.1.0.RC1
的3.1.0.RC1堆栈跟踪状态
Unable to start embedded Tomcat
FAILURE: Build failed with an exception
...
* What went wrong:
Execution failed for task ':main:bootRun'.
> Process 'command '/opt/java/jdk1.8.0_60/bin/java'' finished with non-zero exit value 1
如果我包括3.2.9罐子这里建议Grails 3.1.0_M2 - Spring-Security-Core 3.0.0.M1 Error的3.1.0.RC1构建给出了不同的堆栈跟踪:
ERROR grails.boot.GrailsApp - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityProperties' defined in class path resource [org/springframework/boot/autoconfigure/security/SecurityFilterAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.security.SecurityProperties]: Factory method 'securityProperties' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/config/http/SessionCreationPolicy
...
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.security.SecurityProperties]: Factory method 'securityProperties' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/config/http/SessionCreationPolicy
从https://bintray.com/grails/plugins/spring-security-core/view安装3.0.0 - 最初的M1版本是用不同的名称发布的,但是今后的回购就是要使用的版本。 –
谢谢,我从静态规则更新到Requestmaps :)后工作 – biomq