How to enable spring support in IntelliJ Community Edition 2016.1.3

I have very good basic knowledge of pure Java. As long as I don't have an XML configuration and project management tools, I'm very good.

What really confused me was the project management tools, for example: Maven, Gradle.

I am studying Spring, and it bothers me so much, because it has a lot of XML files, and there is no clear explanation for this.

I am learning Spring from this video tutorial, lecture 6
Spring "Hello world."

I could not make the Spring hello world, because the xxxxx.xml file is required to configure the bean components (Java object). To generate XML files, I need to generate an XML file using the IntelliJ 2016 plugin.

The question is, I cannot find a plugin to create an XML file for a component, following this official guide . There is no such plugin called "Spring Support".

What should I do to generate beans.xml? (Spring Bean Management File)

+9
spring intellij-idea
source share
5 answers

Let's take things one at a time:

  1. Your understanding of the problem is created by management tools such as Maven and Gradle. Try these tutorial links: Maven in 5 minutes , Gradle is a very advanced build automation tool with continuous integration features, you can find a good comparison between Gradle and Maven here .

  2. If you do not know what Spring is, try this book: Spring in Action, 3rd edition (4th edition is also available, I recommend 3rd edition, since you can associate XML with annotations).

  3. You do not need any tool to generate XML files. Copy the sample Spring configuration file from the Internet, remove the unnecessary items, and write your own bean components.

+5
source share

You cannot enable Spring support in IntelliJ Community Edition, it is only available in the paid version (Ultimate).
However, you can create the XML file manually, and the CE version also supports it (a bit).
To work with Spring or J2EE, you should familiarize yourself with build tools such as Maven, Gradle (or Ant in some special cases). The concept is simple, and you can easily get it from the official website ( https://maven.apache.org/ - http://gradle.org/ ).
For Spring, if you are not familiar with creating an XML file, you can use the Java configuration instead or switch to using Spring-boot to forget this configuration file (almost).
However, firstly, I think that you should get the basic concept of Spring and try to work well with the configuration of XML files. This will be useful in the future when you work with him deeply.

+16
source share

Spring Support Plugin is an IntelliJ IDEA Ultimate feature that is a commercial IDE. It is not available in the free edition of Community Edition.

You do not need a plugin to create a beans.xml file; you can write it manually in the source code editor.

+7
source share

To support Spring, have you tried the "Spring Assistant" plugin?

https://plugins.jetbrains.com/plugin/10229-spring-assistant

The good part is that he has an active development.

0
source share

I know what you're asking about IntelliJ Idea, but since it is a commercial tool, you have to pay to allow you to use its plugins. Another way is to use Spring Tools for Eclipse, which is a great environment for developing Spring applications. But you should be familiar with the eclipse. It can be downloaded from: Spring Tools 4 for Eclipse

0
source share

All Articles