ExamGecko
Question list
Search
Search

Question 22 - 2V0-72.22 discussion

Report
Export

Spring Boot will find and load property files in which of the following? (Choose the best answer.)

A.
A *.properties file matching the name of the class annotated with @SpringBootApplication.
Answers
A.
A *.properties file matching the name of the class annotated with @SpringBootApplication.
B.
config.properties or config.yml, usually located in the classpath root.
Answers
B.
config.properties or config.yml, usually located in the classpath root.
C.
application.properties or application.yml, usually located in the classpath root.
Answers
C.
application.properties or application.yml, usually located in the classpath root.
D.
env.properties or env.yml, usually located in the classpath root.
Answers
D.
env.properties or env.yml, usually located in the classpath root.
Suggested answer: C

Explanation:

Reference: https://stackabuse.com/how-to-access-property-file-values-in-spring-boot/

asked 16/09/2024
Aubrey Oliver Jr
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first