I try to run or debug program using play/debug button in IntelliJ and I got Error: Could not find or load main class
I've done a lot of things from Spring Boot Program cannot find main class did not work. But when I use command line and run: mvn spring-boot:run app is running and works perfectly fine.
My main method is below:
@SpringBootApplication
public class HomeworkApplication {
public static void main(String[] args) throws IOException {
SpringApplication.run(HomeworkApplication.class, args);
JsonData jsonData = new JsonData();
}
}
I just want to run and debug via IntelliJ.