2015-12-27 30 views
0

据我所知,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 

回答

-1

上述解决方法在3.1.0.RC1中使用spring-security-core:3.0.0插件。需要Requestmaps,而不是staticRules的映射。

+1

这不是一个答案,它应该是一个评论。这是不正确的 - 请求映射不是必需的,你只需要阅读关于定义'staticRules'的新格式的文档 –

相关问题