gpt4 book ai didi

grails - Grails ehcache插件中的编译错误

转载 作者:行者123 更新时间:2023-12-02 14:11:27 25 4
gpt4 key购买 nike

刚刚添加到BuildConfig.groovy中:

    compile ":cache-ehcache:1.0.1"

我正在使用Eclipse / Spring Tool Suite v 3.5.0.RELEASE

JAVA_HOME设置为:E:\ Program Files \ Java \ jdk1.7.0_17

运行grails runApp时出现以下编译错误。
Compilation error: startup failed:
Compile error during compilation with javac.
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:195: error: ReloadableCacheManager.ProxyEhcache is not abstract and does not override abstract method getSearchesPerSecond() in Ehcache
protected class ProxyEhcache implements Ehcache {
^
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:798: error: getStatistics() in ReloadableCacheManager.ProxyEhcache cannot implement getStatistics() in Ehcache
public StatisticsGateway getStatistics()
^
return type StatisticsGateway is not compatible with Statistics
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:656: error: cannot find symbol
return getUnderlyingEhcache(name).getSearchAttributes();
^
symbol: method getSearchAttributes()
location: interface Ehcache
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:653: error: method does not override or implement a method from a supertype
@Override
^

最佳答案

尝试删除.grails目录下的项目文件夹,例如‘〜/ .grails / 2.3.8 / projects / osrpms”。

和命令

grails clean-all

grails clean

然后运行项目

关于grails - Grails ehcache插件中的编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25175041/

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