问题描述
我从头开始研究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.
推荐答案
- 帮助> Eclipse市场
- 键入spring和搜索
- 找到Spring IDE Roo支持并单击安装
- 接受条款并单击完成
- 重新启动Eclipse
- 文件>新建>其他> Spring> Spring Bean配置文件
- Help > Eclipse market
- Type spring and search
- Find Spring IDE Roo Support and click install
- Accept terms and click finish
- Restart Eclipse
- File > New > Others > Spring > Spring Bean configuration file
这篇关于如何在基于Eclipse的Spring项目中添加bean配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!