简体   繁体   English

找不到春季班

[英]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-corespring-beansorg.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中提出。

Take a look at the javadocs . 看看javadocs

Deprecated. 已过时。 as of Spring 3.1 in favor of DefaultListableBeanFactory and XmlBeanDefinitionReader 从Spring 3.1开始,支持DefaultListableBeanFactory和XmlBeanDefinitionReader

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

相关问题 在Eclipse中找不到Spring类 - Spring Classes not found in eclipse 春季启动启动错误BOOT-INF /找不到类 - spring boot startup error BOOT-INF/classes not found Spring 引导 - Gradle - 在 META-INF/spring.factories 中找不到自动配置类 - Spring Boot - Gradle - No auto configuration classes found in META-INF/spring.factories SBT+spring-boot:“在 META-INF/spring.factories 中找不到自动配置类” - SBT+spring-boot: “ No auto configuration classes found in META-INF/spring.factories” 在 META-INF/spring.factories 中找不到自动配置类。 Spring 开机 - No auto configuration classes found in META-INF/spring.factories. Spring Boot 在模块类中发现重复的类 - Duplicated classes found in modules classes Spring Boot Web War-找不到web-inf / classes / context.xml文件 - Spring boot web war - web-inf/classes/context.xml file not found SpringBoot - 制作 jar 文件 - 在 META-INF/spring.factories 中找不到自动配置类 - SpringBoot - making jar files - No auto configuration classes found in META-INF/spring.factories 使用Maven组件插件在META-INF / spring.factories中找不到自动配置类 - No auto configuration classes found in META-INF/spring.factories using maven assembly plugin Docker:图像无法运行:在 META-INF/spring.factories 中找不到自动配置类 - Docker: image won't run : No auto configuration classes found in META-INF/spring.factories
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM