Check out example codes for "Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean". It will help you in understanding the concepts better.

Code Example 1

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);
	}
}

Learn ReactJs, React Native from akashmittal.com