gpt4 book ai didi

groovy - 用Gradle,Groovy和spring-boot加载springspring失败,并出现java.lang.NoSuchFieldException:classCache

转载 作者:行者123 更新时间:2023-12-03 04:53:09 24 4
gpt4 key购买 nike

我已经成功设置了spring-boot-groovytemplates和执行器项目。
但是,当将springloaded添加到buildscript / dependencies块时,在IDEA中重新编译时得到以下stracktrace

java.lang.NoSuchFieldException: classCache
at java.lang.Class.getDeclaredField(Class.java:1918)
at org.springsource.loaded.agent.SpringPlugin.clearCachedIntrospectionResults(SpringPlugin.java:162)
at org.springsource.loaded.agent.SpringPlugin.reloadEvent(SpringPlugin.java:127)
at org.springsource.loaded.TypeRegistry.fireReloadEvent(TypeRegistry.java:1767)
at org.springsource.loaded.ReloadableType.loadNewVersion(ReloadableType.java:405)
at org.springsource.loaded.TypeRegistry.loadNewVersion(TypeRegistry.java:845)
at org.springsource.loaded.agent.ReloadableFileChangeListener.fileChanged(ReloadableFileChangeListener.java:51)
at org.springsource.loaded.agent.Watcher.determineChangesSince(FileSystemWatcher.java:235)
at org.springsource.loaded.agent.Watcher.run(FileSystemWatcher.java:219)
at java.lang.Thread.run(Thread.java:695)

有什么线索吗?

最佳答案

您没有提到正在使用哪个版本的Spring Framework或Spring Loaded,但是我想您正在尝试将Spring Loaded 1.2.0与Spring Framework 4.1一起使用。看来您在Spring Loaded中打了this bug。您应该升级到Spring Loaded 1.2.1,因为它包含a change,它可以解决问题并使其与Spring Framework 4.1兼容。

关于groovy - 用Gradle,Groovy和spring-boot加载springspring失败,并出现java.lang.NoSuchFieldException:classCache,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26676258/

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