怎么在eclipse中建立spring bean file

来源:互联网 发布:招投标软件哪个好 编辑:程序博客网 时间:2024/05/16 01:23
建一个简单的项目的方法:安装插件方法:install New Software首先安装SpringSource Tool Suite插件依赖:Name为:SpringSource Tool SuiteLocation为:http://dist.springsource.com/release/TOOLS/update/e3.6将url贴在work with上,等待反应,后来只选择aspectJ Development Tools(required)aspect Development Tools Source(Optional)Other AJDI tools(Optional)等待反应,后eclipse会提示删除哪些,就删除哪些就行了。第二步:Name为:SpringSource Tool SuiteLocation为:http://dist.springsource.com/release/TOOLS/update/e3.6Core/Spring IDEExtensions (Incubation)/Spring IDEExtensions/Spring IDEIntegrations/Spring IDE第三步导入jar包就行了,核心jar包:从下载的spring-framework-3.0.5.RELEASE-with-docs.zip中dist目录查找如下jar包org.springframework.asm-3.0.5.RELEASE.jarorg.springframework.core-3.0.5.RELEASE.jarorg.springframework.beans-3.0.5.RELEASE.jarorg.springframework.context-3.0.5.RELEASE.jarorg.springframework.expression-3.0.5.RELEASE.jar  依赖的jar包:从下载的spring-framework-3.0.5.RELEASE-dependencies.zip中查找如下依赖jar包com.springsource.org.apache.log4j-1.2.15.jarcom.springsource.org.apache.commons.logging-1.1.1.jarcom.springsource.org.apache.commons.collections-3.2.1.jar第二个我的资源里已经上传了再接着创建java工程就行了,名字就为chapter2就行了,再properties,Java Build Path,选Libraries,接着Add JARs(lib包中的),Add Library(Junit->Junit4),这样整个项目需要的东西都准备好了。建个resources的source folder类型的文件夹,再在下面建个文件为chapter,这个文件夹下面放配置文件的。文件结构就是:src---java文件(系统自带)resources-----配置文件JRE System Library(系统自带)Junit 4Referenced Libraries(导入包后自动生成)lib------jar包然后根据这来建项目就行了
原创粉丝点击