问题描述
我有非常好的纯Java基础知识。只要没有xml配置,并且没有涉及项目管理工具,我就非常好。
I have very good pure Java basic knowledge. As long as there is no xml config, and no project management tools involved, I am very good.
让我感到困惑的是项目管理工具,例如:Maven,Gradle。
The things that really confused me are the project management tools, e.g.: Maven, Gradle.
我正在学习Spring,它让我很困惑,因为它涉及许多xml文件,并且没有明确的解释。
I am learning Spring, and it is so confusing to me since it involves many xml files and there is no clear explanation for it.
我正在从学习Spring视频教程,第6讲
SpringHello World。
I am learning Spring from this set of video tutorials, Lecture 6
Spring "Hello World".
我无法完成Spring hello世界,因为它需要一个xxxxx.xml文件来配置bean(Java对象)。要生成xml文件,我需要使用Intellij 2016上的插件生成一个xml文件。
I couldn't get a Spring hello world done, because it requires a xxxxx.xml file to config the beans (Java object). To generate the xml files, I need to generate a xml file using a plugin on Intellij 2016.
问题是我找不到生成xml文件的插件bean遵循。没有这种名为Spring Support的插件。
The question is I can't find the plugin to generate xml file for bean by following this official tutorial. There is no such plugin called " Spring Support".
我应该怎么做才能生成beans.xml? (管理Spring的bean的文件)
What should I do to generate the beans.xml? (The file to manage beans for Spring)
推荐答案
让我们逐一处理:
-
您的问题是了解maven和gradle等构建管理工具。请尝试以下链接获取教程: Maven在5分钟内,gradle是具有持续集成功能的非常先进的构建自动化工具,您可以在gradle和maven之间找到一个很好的比较这里。
Your problem understanding build management tools like maven and gradle. Try these links for tutorials: Maven in 5 Minutes , gradle is very advance build automation tool with continuous Integration features, you can find a good comparison between gradle and maven here.
如果你对春天感到困惑,请尝试这本书:Spring in Action第3版(第4版也可用,我推荐第3版,因为你将会是能够将xml链接到注释。)
If you are confused about spring try this book: Spring in Action 3rd Edition (4th Edition is also available, I recommend 3rd edition as you will be able to link xml to annotations.)
您不需要任何工具来生成xml文件。从互联网复制样本弹簧配置文件,删除不需要的元素并编写自己的bean。
you do not need any tool to generate xml files. Copy a sample spring configuration file from internet, remove unwanted elements and write your own beans.
祝你学习顺利:)
这篇关于如何在IntelliJ Community Edition 2016.1.3中启用弹簧支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!