Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)
A . The default embedded servlet container can be replaced with Undertow.
B . Jetty is the default servlet container.
C . Spring Boot starts up an embedded servlet container by default.
D . The default port of the embedded servlet container is 8088.
E . Spring MVC starts up an in-memory database by default.
Answer: AC
Explanation:
Spring Boot provides a convenient way to create Spring MVC applications with minimal configuration. By default, it uses Tomcat as the embedded servlet container, but it also supports other containers such as Jetty and Undertow. To use a different container, we just need to exclude the spring-boot-starter-tomcat dependency and include the corresponding starter for the desired container. For example, to use Undertow, we can add the following dependencies in our pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-undertow</artifactId> </dependency>
Reference: https://www.javatpoint.com/spring-vs-spring-boot-vs-spring-mvc
Latest 2V0-72.22 Dumps Valid Version with 60 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund