[英]Spring classes not found
I am trying to follow this wikibook: 我正在尝试遵循此Wikibook:
http://en.wikibooks.org/wiki/Java_Programming/Spring_framework http://en.wikibooks.org/wiki/Java_Programming/Spring_framework
How to resolve the errors? 如何解决错误?
EDIT: 编辑:
I added the jar files to the class path: The imports still don't work. 我将jar文件添加到类路径中:导入仍然无法正常工作。 The number of errors did not go down.
错误数量没有减少。 So this means that deprecation is the only issue.
因此,这意味着折旧是唯一的问题。
From what I see on the screenshot you are missing the two jars that you need - spring-core
and spring-beans
( org.springframework.core/beans
) - you have only their -sources
jars, which do not contain compiled classes. 从我在屏幕快照上看到的内容中,您找不到所需的两个jar-
spring-core
和spring-beans
( org.springframework.core/beans
)-您只有它们的-sources
jar,其中不包含编译的类。
As for the deprecation - it only shows warnings. 至于弃用-它仅显示警告。 But consult the documentation of the deprecated class to see what's its replacement.
但是,请查阅不推荐使用的类的文档,以了解它的替代品。
You need to add the appropriate libraries to the classpath . 您需要将适当的库添加到classpath 。 For more information, see How to Add JARs to Project Build Paths in Eclipse (Java) .
有关更多信息,请参见如何在Eclipse(Java)中将JAR添加到项目构建路径 。 Also, to "get around" deprecation, follow the proposed alternate solutions, which are typically suggested in the javadoc .
另外,要“解决”过时问题,请遵循建议的替代解决方案,通常在javadoc中提出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.