java ee ide 添加spring,如何在Eclipse IDE项目文件夹中为spring添加jar文件

I am going to start MVC with Spring framework, but I am unable to get jar file of spring framework .I have tried in help menu>install new software>add new in Eclipse IDE but I failed. Can anyone please guide me ?

解决方案

You can try download STS (Spring Source Tool Suite) from this link:

Of course, you should try Maven which is easy to use and adds value to the libraries and additional components you handle in your project.

If you want to add the libraries manually and work without any library handler like maven, then you can do the following:

Create a new Java Project

Over your project, right click and then create a new folder, call it "libs"

Download the latest libraries of Spring 3 MVC: http://projects.spring.io/spring-framework/

Once you've downloaded the libraries, extract the content of the zip and copy the required "jar" files inside the folder "libs" you've just created.

Once you copied the files to the folder, select all the files, right-click, look at "Build Path" and click on "Add to Build Path"

then in the project explorer, you will be able to see that in "Referenced Libraries" you have the Spring libraries.

Just have fun.

But as recommended and suggested, try downloading maven, there is an integration also if you go and install from the Eclipse Market: m2eclipse.

Then, another option is like many people answered you: use STS, which comes with maven and will make your work easier and faster.

Now seems like Spring just wants to work with dependency managers, so you can go to the central repository and download the parts you need, here you have the link:

http://mvnrepository.com/artifact/org.springframework/

Regards.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值