gpt4 book ai didi

grails - grails 2.4.0.M1 中的 spring 安全插件错误

转载 作者:行者123 更新时间:2023-12-04 20:08:28 25 4
gpt4 key购买 nike

我遇到了编译问题,使用 grails 2.4.0.M1 和 spring-security-core:2.0-RC2

这是错误:

..../target/work/plugins/spring-security-core-2.0-RC2/src/groovy/grails/plugin/springsecurity/ReflectionUtils.groovy: 205: Apparent variable 'org' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes: You attempted to reference a variable in the binding or an instance variable from a static context. You misspelled a classname or statically imported field. Please check the spelling. You attempted to use a method 'org' but left out brackets in a place not allowed by the grammar. @ line 205, column 18. application = org.codehaus.groovy.grails.commons.ApplicationHolder.application ^



问题似乎是围绕这个方法
private static GrailsApplication getApplication() { 
if (!application) {
application = org.codehaus.groovy.grails.commons.ApplicationHolder.application
}
application
}

在 ReflectionUtils.groovy 类上,

有没有其他人遇到过这样的事情?如果是这样,你如何修复它?

最佳答案

我今天解决了这个问题 - https://github.com/grails-plugins/grails-spring-security-core/commit/ef3aab05bfb0eb2f2cbb2c5945f4fc9ca2f0697d

您可以将@Bubuntux 显示的更改作为临时解决方法进行,我将在几周内发布 2.0 最终版并修复此问题。希望您不打算在生产中使用 Grails M1 版本,因此延迟应该不是什么大问题。

关于grails - grails 2.4.0.M1 中的 spring 安全插件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22241850/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com