Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable spring support in IntelliJ Community Edition 2016.1.3

Tags:

I have very good pure Java basic knowledge. As long as there are no XML config and no project management tools involved, I am very good.

The things that really confused me are the project management tools, e.g.: Maven, Gradle.

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.

I am learning Spring from this set of video tutorials, Lecture 6
Spring "Hello World".

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 an XML file using a plugin on IntelliJ 2016.

The question is I can't find the plugin to generate a XML file for the bean by following this official tutorial. There is no such plugin called " Spring Support".

What should I do to generate the beans.xml? (The file to manage beans for Spring)

like image 302
Nicolas S.Xu Avatar asked Jun 24 '16 17:06

Nicolas S.Xu


People also ask

How do I enable Spring assistant in IntelliJ Community Edition?

You can't enable Spring support with IntelliJ community Edition, it only available with paying version (Ultimate). However, you can create the . xml file manually and CE version also supports it (a little bit).

Is Spring available in IntelliJ Community Edition?

This IDE is developed by Jetbrains and is available as an Apache 2 Licensed community edition and a commercial edition.

How do I use Spring in IntelliJ IDEA Community Edition?

If you are not able to find Spring Assistant plugin within IntelliJ Community Edition, Go to Plugin's website and then click on GET button, Choose Compatibility with IntelliJ IDEA Community and then click Download . The rest of the procedure remains the same as described by @Prashant.


1 Answers

You can't enable Spring support with IntelliJ community Edition, it only available with paying version (Ultimate).
However, you can create the .xml file manually and CE version also supports it (a little bit).
To working with Spring or J2EE, you should get familiar with build tools like Maven, Gradle (or Ant in some special case). The concept is simple and you can get it easily from the official website (https://maven.apache.org/ - http://gradle.org/).
For Spring, if you are not familiar with creating a .xml file, you can use Java configuration instead or move to use Spring-boot to forget this configuration file (almost).
However, at first, I think you should get the basic concept of Spring and try to work well with .xml files configure. It'll be helpful in the future when you work with it deeply.

like image 72
Huy Tran Avatar answered Sep 21 '22 09:09

Huy Tran