Creating the ApplicationContext used in your tests through the SpringApplication. By default, @SpringBootTest will not start a server. You can use the webEnvironment attribute of @SpringBootTest to further refine how your tests run. Provides the following features over and above the regular Spring TestContext Framework:

Can register the following beans for web tests that are using a fully running web server: