반응형
Error
- 웹 서버를 실행시키지 못함
***************************
APPLICATION FAILED TO START
***************************
Description:
Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.
Action:
Check your application's dependencies for a supported servlet web server.
Check the configured web application type.
Process finished with exit code 1
해결 방법
- 경우의 수는 많겠지만 나같은 경우는 SpringBootApplication 애너테이션을 붙이지 않아서 발생한 문제였다.
@SpringBootApplication
// Main.java
@SpringBootApplication
public class Main {
public static void main(String[] args) {
SpringApplication.run(Main.class, args);
System.out.println("Hello world!");
}
}
반응형