we can create a non-web application by removing the web dependencies from the classpath along with changing the way Spring Boot creates the application context.