You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i create simple Spring gradle project via Spring Initializr and try to run it in Intellij every time i get:
ClassNotFoundException: org.springframework.boot.SpringApplication
If i use same setup but instead gradle project i choose maven, then everything works great.
Steps to reproduce:
Go to Spring Initializr, choose gradle project.
Set some random names or keep demo.
Add Web and Rest as dependencies.
Download and import in Intellij as gradle project.
Go to run settings (Edit Configurations.. -> + -> Applications), set Main class and module, click save and close dialog.
Run!
Expected:
Everything works fine exactly like maven generated project.
Actual:
You get exception:
ClassNotFoundException: org.springframework.boot.SpringApplication
Spring version: latest
Intellj version: IntelliJ IDEA 2016.1.4
Build #IC-145.2070,
JRE: 1.8.0_76-release-b198 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o