简体   繁体   English

设置Spring工具包-找不到Spring类

[英]Setting up spring toolkit - spring classes not being found

I've downloaded and installed the latest spring toolkit on eclipse helios via the update site. 我已经通过更新站点在Eclipse Helios上下载并安装了最新的spring工具包。 According to the spring website the toolkit contains "everything" needed to develop a spring app. 根据spring网站的介绍,该工具包包含开发spring应用所需的“一切”。 All the spring imports are not found such as - 找不到所有春季进口,例如-

import org.springframework.format.annotation.DateTimeFormat;

Compile error given is = "The import org.springframework cannot be resolved" 给定的编译错误为=“无法解析导入org.springframework”

When I create a new spring project I would have thought all spring dependencies would have been added to my build path automatically, but checking project properties this does not seem to be the case. 当我创建一个新的spring项目时,我会以为所有spring依赖项都会自动添加到我的构建路径中,但是检查项目属性似乎并非如此。 Do I need to explicitly add the required libraries and if so should they be available as part of the spring toolkit ? 我是否需要显式添加所需的库,如果是的话,它们应该作为spring工具箱的一部分提供吗?

The required jars are available from http://www.springsource.com/download/community For spring3.1 their in spring-framework-3.1.0.RELEASE.zip 所需的jar可以从http://www.springsource.com/download/community获得,对于spring3.1,其在spring-framework-3.1.0中。RELEASE.zip

This tutorial is useful for setting up - http://www.theserverside.com/tutorial/Spring-30-Tutorial-Setting-Up-Configuring-The-Environment 本教程对于设置非常有用-http: //www.theserverside.com/tutorial/Spring-30-Tutorial-Setting-Up-Configuring-The-Environment

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

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