Hi all. I just got a 1 year license and have read articles, watched tutorials, tried everything I can and I'm having the hardest time getting the simplest Spring Boot app working in IntelliJ IDEA.
I have several Spring Boot projects in NetBeans and would like to be able to work on them. If I do a new project with existing sources, it doesn't honor my Maven project structure and tries to add every /src/main folder in each Maven module as a source. It never recognizes Spring as a framework or as a Facet. I can manually add Spring as a facet, but it doesn't seem to affect anything. Almost every class I have shows that every import is unused, and the code itself that uses the imported classes, the IDE says it can't locate that class.
I gave up and tried doing a new, simple project using the Spring Initializr. The only dependency I add is web and create my new project. It seems to build the project fine, but it doesn't seem to recognize it as a runnable project. If I go into Run/Debug Configurations, select Spring Boot, then try to type in my main class (com.example.DemoApplication), "example" shows up red and it says it can't resolve symbol. The class with the main method does not have a green arrow.
Here is my build info:
IntelliJ IDEA 2016.2.1
Build #IU-162.1447.26, built on August 2, 2016
JRE: 1.8.0_76-release-b216 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
For the life of me I can't figure out what I'm doing wrong. Any help would be appreciated.