Spring Certified Professional 2023 · Free Practice Question Easy
Question 22
What is the dependency name of the additional set of tools included in Spring Boot that can make the application development experience a little more pleasant (like automatic restart)?
-
A
spring-boot-devtools -
B
spring-boot-starter-devtools -
C
spring-utils-starter -
D
spring-initializr
Reveal correct answer
Correct answer: A
Explanation
Spring Boot includes an additional set of tools that can make the application development experience a little more pleasant. The spring-boot-devtools module can be included in any project to provide additional development-time features. To include devtools support, simply add the module dependency to your build:
Maven.
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <optional>true</optional>
- </dependency>
- </dependencies>
Gradle.
- dependencies {
- compileOnly("org.springframework.boot:spring-boot-devtools")
- }
https://docs.spring.io/spring-boot/docs/1.5.16.RELEASE/reference/html/using-boot-devtools.html
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
