grails - spring-security-core:3.0.0.M1插件在grails 3.0.8中可以正常构建,但在3.1.0.RC1中不能构建

标签 grails plugins spring-security

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

相关文章:

java - 无法在Eclipse中安装ADT插件?

angularjs - 隐藏/显示 AngularJS 或基于经过身份验证的用户权限的任何其他单页应用程序 ui 组件的正确方法是什么?

spring-security - 如何在 Spring 获取之前捕获 Spring Security 登录表单?

exception - 时髦的 : deploying a war file

grails - 如何在实时/生产环境中监控和维护我的 grails 应用程序?

grails 动态脚手架 - 跳过一个字段以在 View 中渲染

git - 多个 Git 存储库

java - 在 Eclipse 中调试大插件

java - 如何仅针对/执行器/健康禁用安全性?

java - 帮助在 Eclipse 中创建重构插件?