I imported a Spring Initializr build to IntelliJ and then run it as a Spring Boot build.
The build works fine and displays in the browser but I continue to receive an error about unused imports and that @SpringBootApplication cannot be resolved. I also followed these steps as well: Cannot resolve symbol SpringApplication
Anyone else has this issue.
package com.sts.kevthedev;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class KevthedevApplication {
public static void main(String[] args) {
SpringApplication.run(KevthedevApplication.class, args);
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…