Unable to start web server; nested exception is org.springframework.context.ApplicationContextException code example

Example: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}

Tags:

Java Example