R4RIN
Articles
Java 8
MCQS
Spring Boot MCQ Quiz Hub
Spring Boot - Application Properties
Choose a topic to test your knowledge and improve your Spring Boot skills
1. Spring Boot supports Application Properties support ?
Yes
No
2. Spring Boot, properties are kept in the application.properties file
Yes
No
3. Can we provide more than one application properties?
Yes
No
4. In Spring Boot, properties are kept in the application.properties file under the classpath?
Yes
No
5. The application.properties file is located in the src/main/resources directory in Spring boot ?
Yes
No
6. Set/Change port in Spring Boot?
server.port = 9090
server.ports = 9090
servers.port = 9090
servers.ports = 9090
7. We have a service name as r4rdemo .How do we start it with Spring Boot application?
spring.application.name = r4rdemo
spring.service .name = r4rdemo
Both
None
8. @Value Annotation
The @Value annotation is used to read the environment or application property value in Java code.
If the property is not found while running the application, Spring Boot throws the Illegal Argument exception as Could not resolve placeholder spring.application.name in value ${spring.application.nam
Both
None
9. Can we keep two separate files for development and production to run the Spring Boot application?
Yes
No
10. Are Spring Boot supports different properties based on the Spring active profile?
Yes
No
Submit