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,
Figure: No Spring section here in the selection wizard
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.
Go the Eclipse MarketPlace
and search STS there
Install Spring Tool Suit
Then go to the window and select open perspective now you will be able to see spring perspective there.
After this right click on the src/main/resources
Click on new and select other and search for spring configuration file
Now you will be good to go.
1.帮助> Eclipse市场2.键入spring并进行搜索3.找到Spring Tools 3用于Spring Tools 4的附件,然后单击安装4.接受条款并单击完成5.重新启动Eclipse 6.File> New> Others> Spring> Spring Bean配置文件
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.