Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: How can you access a value defined in the application? What is properties file in Spring Boot?
Answer:
Use the @Value annotation to access the properties which is defined in the application.properties file.
@Value(”${custom.value}”)
private String customVal;
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook