Can't find SpringBootApplication class
已回答
I'm having all kinds of Intellij / Gradle.
I have a simple Gradle project. Just a vanilla SpringBootApplication class. I can clean, compile, build ok. But when I try to run my Spring Boot class via Run Configuration I get: Error: Could not find or load main class com.opentext.cem.dataset.DatasetApplication.
The Run Configuration is a Spring Boot Application.
请先登录再写评论。
Solved by upgrading to 2019 and rebuilding project with new project wizard. Never know the actual issue. Not sure I care, I am back to coding. :>)
I solved it by doing these steps:
1. Closing the project and IntelliJ
2. Deleting .idea folder from projects root directory
3. Re-opening IntelliJ
Not sure what was the issue. But this solved my issue.