Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring in IntelliJ  RSS feed

 
Kevin Simonson
Ranch Hand
Posts: 219
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to learn how to use Spring, and have been reading the book Spring in Action, by Craig Walls. I'm trying to compile the files he used as examples early on. Someone who I trust said what I want to do is use the IntelliJ IDE to compile those files. So I downloaded IntelliJ, and I think I installed everything.

I'm looking at a screen that has the label "New Project" up in the upper left hand corner, and below that a vertical list consisting of labeled icons with labels "Java", "Java FX", "Maven", "Gradle", "Groovy", "Griffon", "Kotlin", and "Empty Project". From the middle to the right edge there's a box; at the top of that box it says, "Project SDK:", and to the right of that it says, '1.8 (java version "1.8.0_111")'. Underneath it says, "Additional Libraries and Frameworks:" and underneath that are three labeled icons with labels "Groovy", "Kotlin (Java)", and "Kotlin (JavaScript - experimental)". Way below that, down towards the bottom, it says, "Use library:", and to the right of that is a box; inside the box it says, "[No library selected]". I click on that box and nothing happens. I click on the little "Create..." box to its right and nothing happens. Below them is the message: "Error: library is not specified". At the very bottom of the window are four buttons, <Previous> (shaded out), <Next>, <Cancel>, and <Help>.

My question is, what do I have to do to get my Spring project set up? That project currently looks like follows:

How do I get this into IntelliJ so that I can try compiling it? Any pointers would be extremely appreciated.
 
William Barnes
Ranch Hand
Posts: 1049
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know the answer to your specific question, but these videos use IntelliJ and I found them helpful with getting used to that IDE.  https://www.marcobehler.com/series/1-spring-boot-from-zero-to-rest

And I think this is post #1000!
 
William Barnes
Ranch Hand
Posts: 1049
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the example code not come with a .pom file?  Without that you will not be able to import it as a Spring project, I would think. 
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!