据我所知,spring-security-core:3.0.0.M1插件未内置于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
如果我按照此处Grails 3.1.0_M2 - Spring-Security-Core 3.0.0.M1 Error的建议包含3.2.9 jar,则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://github.com/grails-plugins/grails-spring-security-core/issues/401
顺便说一句:spring-security-core-3.0.0已发布。
关于grails - spring-security-core:3.0.0.M1插件在grails 3.0.8中可以正常构建,但在3.1.0.RC1中不能构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34478466/