繁体   English   中英

Spring 在 Eclipse 的引导层初始化期间发生错误

[英]Spring Error occurred during initialization of boot layer In Eclipse

当我下载 Spring 的文件并将它们添加到 eclipse 时,“Hello World”项目出现此错误;

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Program 
Files\eclipse\spring-framework-5.1.9.RELEASE\libs\spring-context-indexer-5.1.9.RELEASE-sources.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Provider class 
org.springframework.context.index.processor.CandidateComponentsIndexer not in module

按照这些步骤解决问题;

1- 下载 Spring最新版本(在我的情况下,“ 5.2.0.RELEASE/ 30-Sep-2019 09:06 ”)选择了spring-XxxRELEASE-dist.zip

2-解压缩文件。

3- 在 eclipse 添加 extranl jars 步骤在 Libs 文件夹中,不要使用带有spring-xxx-XxxRELEASE-sources的那些。

4-完成。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM