4

试图在这里完成教程:http ://rwinch.blogspot.com/2011/03/running-spring-securitys-tutorial.html

已经下载了 git://github.com/SpringSource/spring-security.git 并在 Spring Source ToolSuite 中获得了很多项目。其中两个包含错误(spring-security-configspring-security-samples-cassample

Groovy:AST 转换的意外问题:Spock 编译器插件无法运行,因为 Spock 0.5.0-groovy-1.7 与 Groovy 1.8.4 不兼容。有关详细信息,请参阅 http://versioninfo.spockframework.org

它附加到线路上的错误

package org.springframework.security.config.http

我对 Groovy 完全不熟悉。那么是否有可能提示我以某种方式升级 Spock 0.5.0-groovy-1.7 做什么简单的事情?

4

1 回答 1

3

通过添加命令行选项解决

 -groovy.compiler.level 17

到 STS 快捷方式。

根据这里: http: //groovy.codehaus.org/Compiler+Switching+within+Groovy-Eclipse

于 2012-02-12T22:01:52.670 回答