@Value Annotation
1.The @Value annotation is used to read the environment or application property value in Java code.
2.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
3.Both
4.None
Are Spring Boot supports different properties based on the Spring active profile?
1.Yes
2.No
Can we keep two separate files for development and production to run the Spring Boot application?
1.Yes
2.No
Can we provide more than one application properties?
1.Yes
2.No
In Spring Boot, properties are kept in the application.properties file under the classpath?
1.Yes
2.No
Set/Change port in Spring Boot?
1.server.port = 9090
2.server.ports = 9090
3.servers.port = 9090
4.servers.ports = 9090
Spring Boot supports Application Properties support ?
1.Yes
2.No
Spring Boot, properties are kept in the application.properties file
1.Yes
2.No
The application.properties file is located in the src/main/resources directory in Spring boot ?
1.Yes
2.No
We have a service name as r4rdemo .How do we start it with Spring Boot application?
1.spring.application.name = r4rdemo
2.spring.service .name = r4rdemo
3.Both
4.None