Error occurred during initialization of boot layer. Unable to derive module descriptor.

huangapple 未分类评论62阅读模式
英文:

Error occurred during initialization of boot layer .Unable to derive module descriptor

问题

错误:在运行Spring应用程序时,我遇到了以下错误。我正在按照以下教程操作:https://www.tutorialspoint.com/spring/spring_hello_world_example.html

我最初在默认包中创建了文件,然后创建了一个新包,并将类移动到了新包中。

初始化引导层时发生错误
java.lang.module.FindException:无法为C:\Users\MIDHUN\Downloads\spring-framework-5.2.3.RELEASE\libs\spring-context-indexer-5.2.3.RELEASE-sources.jar导出模块描述符
原因:java.lang.module.InvalidModuleDescriptorException:提供程序类org.springframework.context.index.processor.CandidateComponentsIndexer不在模块中

英文:

Error occurred during initialization of boot layer. Unable to derive module descriptor.While running spring application i am getting error as .I am following the following tutorialhttps://www.tutorialspoint.com/spring/spring_hello_world_example.html

I created files intially in a default package and after that created a new package and moved class to that new

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

答案1

得分: -1

我认为你应该这样做:Spring(项目名称)右键单击,转到属性,然后在Java构建路径中尝试将JAR文件添加到类路径文件夹中。

英文:

i think that you should do: Spring(name-project) right click go to properties, then in java build path and try to add the jar files into classpath folder

huangapple
  • 本文由 发表于 2020年3月15日 23:20:21
  • 转载请务必保留本文链接:https://java.coder-hub.com/60694410.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定