Faster Spring Boot with IntelliJ IDEA 14.1

In the IntelliJ IDEA 14.1 EAP announcement we’ve already teased you with the expected support for Spring Boot into the IDE. Today the time has come to share more details on what it is and what you already can try with the latest EAP build.

Creating New Projects

First of all, IntelliJ IDEA now lets you quickly create new projects using Spring Initializr right from the Project Wizard, where you can create ready-to-run applications with just few clicks:


Editing Application Configuration Files

Now you get thee advanced coding assistance for editing your application configuration which includes smart code completion, error highlighting, navigation, and quick fixes:


If you add the application properties files to your Spring facet, they will be automatically validated on Make in case the Compiler → Validation → Spring Model option is selected.

If you try renaming any Spring profile from its usage, IntelliJ IDEA will automatically apply corresponding changes to profile-specific configuration files:


Running Spring Boot Applications

And finally, to give you the complete control over Spring Boot applications, we’ve added a brand new dedicated Run Configuration that lets you quickly override Spring Boot settings and application configuration properties (more coming soon, please see issue for details.)


That’s all for now, we hope you’ll enjoy developing Spring Boot applications with IntelliJ IDEA, and are eager to hear your feedback. You can vote up existing issues in our tracker, create new ones, or post to the discussion forum for that.

Develop with Pleasure!

This entry was posted in New Features and tagged , , , . Bookmark the permalink.

41 Responses to Faster Spring Boot with IntelliJ IDEA 14.1

  1. There is no Neo4J template ? :)

  2. Clint Checketts says:

    I love seeing Spring Boot get such excellent support in IntelliJ IDEA.

    Any idea why Java Config Spring MVC wouldn’t be working? I tried it in the 14.1 EAP and it still appears completely broken. (As in nothing populates the Spring Tool window)

    Ticket: (looks like it was incorrectly closed as a dupe)

  3. Javad says:

    I am really excited to see IntelliJ IDEA supports Spring-Boot, the sad news for me is I couldn’t configure my current Spring Boot project into IntelliJ IDEA :(
    I’ve added Spring facet bu nothing more. Am I doing something wrong or this is an issue?
    Anybody was able to use this new feature?

    • Yann Cébron says:

      Spring Boot model setup/support is coming yet.

    • Sean says:

      If you create the spring boot application through the website, or create it manually with maven (or gradle), you can just open the project with maven (gradle) support and use the configurations to create the project and set it up correctly. If you have groovy or groovy-all in your maven config that should enable groovy, but you can also right click on the application in the project viewer and select add framework support. Then you can select the groovy language. If you don’t have the groovy compiler, you can just install that from groovy-lang, but the import from maven should be enough. I use to experience this issue, so I hope this saves you some of the pain I went through

  4. Michal says:

    Will it support yaml format?

  5. James L says:

    Is there support for generating a Scala-based Spring Boot project, or does this have to be done manually?

    • Yann Cébron says:

      Support for other languages has to be provided by the corresponding Initializr Service.

    • Sean says:

      Make sure you have the scala plugin installed so intellij understands how to use the language features. Then if you follow the spring-scala project, just create the project and import it into intellij. you can also just add scala support and create scala classes. I have done this with a few jvm languages, even including jruby and it works nicely. You may just have to make sure that the files are compiled. When I was using jruby, that was a bigger obstacle than scala, especially using the classes in java files. Scala is a lot nicer to interact with and provides easy cross support.

  6. Gary Kennedy says:

    What about adding camel dependency support? :)

  7. Ivan says:

    How do I configure Intellij so my Spring Boot can be deployed on external server , say JBoss, Glassfish or WebLogic?

    • Yann Cébron says:

      Please see and related topics for handling this using IntelliJ IDEA’s builtin mechanisms.

      • zebrum says:

        Don’t use IntelliJ IDEA’s builtin mechanisms for this it would be almost impossible to get a valid WAR. Spring Initializr uses Maven so in pom.xml change the packaging to war, then open the Maven Projects window and under Lifecycle run the package step and it automatically includes all of the spring jars saving a lot of effort. I believe you also need to change from a SpringBoot main to a Tomcat one.

    • Sean says:

      If you are using maven, make sure you change the packaging type to war, and follow any additional spring boot configurations necessary. Then you can create an artifact of type war. Make sure you include your external server in intellij. If you need screen shots or any help, I can provide those. Then when you launch, make sure your launch configurations are set the same as if you were launching a non spring boot application( or a regular webapp ). And that is if you decide not to use the maven or gradle launch options from the command-line. The nice thing about spring boot is, you can easily make an executable war that will also use an embedded web container or deploy to a standalone container.

      If all else fails, you can easily create a war deployment and use ant with the jar dependency for ssh or ftp to remote deploy to your test environment. and that is if you don’t want to go through your application loader for your container with ant. That is also possible.

  8. Bryce Griner says:

    Not sure what I’m missing, but I just downloaded the latest version of Intellij 14 EAP and I don’t see any Spring Boot functionality when I create a new project. I saw that a Spring Boot plugin was installed, but I don’t see where it can be used.

    Software: Mac OS X 10.9.5
    Processor: 2.7 GHz Intel Core i7

    Build: IU-141-1192 Built May 19, 2015

    • Yann Cébron says:

      All the features mentioned in this blog post should be available, Spring Boot applications can be created using “Spring Initializr” project category in wizard.

  9. harold says:

    I added the to my Spring boot project (Creating it following you steps above) and Intellij is not picking up the file. I actually like using the application.yml file since I can config my profile setup all in one file and really hope intellij works with this! However how do I add this to the Spring Faucet? Im confused here:

    If you add the application properties files to your Spring facet, they will be automatically validated on Make in case the Compiler → Validation → Spring Model option is selected.

    Thanks for the help!

  10. Chris Mousset says:

    Is it possible to make the spring configuration check add all @Configuration classes automatically? This is a manual action now.

    • Sean says:

      Make sure you have component scan on and the configuration files are in the same package, or in a sub package where you declared component scan. When I had this problem, the mistake I made was configuring component scan, then having a package that was parallel, not as a sub package to where I declared component scan. If you want to have the packages parallel, then make sure you include base packages in the component scan annotation and provide a path to the top level packages where the configurations are

  11. Khoi Nguyen says:

    I used to run spring boot application via maven command, and with springloaded artifact to reload all changes. Now I know spring-boot plugin on intellij, however I don’t know how to hotswap the change without restart server

  12. DaShaun says:

    This makes me smile!

  13. Hiren says:

    in intellij idea i create spring boot application using above step after that i do not have option for creating java file in right click of java folder ->new

  14. Pingback: Using Spring Boot JPA to Access MySQL Data – Recursive Chaos

  15. There is no Neo4J ????

Leave a Reply

Your email address will not be published. Required fields are marked *