Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. 2021-05-30 01:09:49.973 ERROR 97200 --- [ main] o.s.boot.SpringApplication : Application run failed 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