如何在基于Eclipse的Spring项目中添加bean配置文件? [英] How to add bean configuration file in an eclipse-based Spring project?

查看:514
本文介绍了如何在基于Eclipse的Spring项目中添加bean配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从头开始研究Spring项目,而当我尝试添加新的Spring bean配置文件时,我只是没有看到它。项目结构和选择向导如下:

I started to work on a Spring project from scratch and while I was trying to add a new Spring bean configuration file, I just don't see it there. The project structure and the selection wizard is as following,

图:在选择向导中没有弹簧部分


图:项目结构

如何在项目中添加bean配置文件?我试图获取模板并添加到项目中。但是,我在文件页面中看不到其他选项卡(例如mvc,上下文等)。 Maven依赖关系很好,它是动态的Web项目。我还尝试使用maven-archetype-webapp作为项目的起点。

How to add a bean configuration file in the project ? I tried to get a template and add in the project. However, I don't see the different tabs (such as, mvc, context etc ) in the file page. The maven dependencies are fine and it's dynamic web project. I also tried with maven-archetype-webapp as starting point of the project.

推荐答案


  1. 帮助> Eclipse市场

  2. 键入spring和搜索

  3. 找到Spring IDE Roo支持并单击安装

  4. 接受条款并单击完成

  5. 重新启动Eclipse

  6. 文件>新建>其他> Spring> Spring Bean配置文件

  1. Help > Eclipse market
  2. Type spring and search
  3. Find Spring IDE Roo Support and click install
  4. Accept terms and click finish
  5. Restart Eclipse
  6. File > New > Others > Spring > Spring Bean configuration file

这篇关于如何在基于Eclipse的Spring项目中添加bean配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆