@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
Posted Date:-2020-11-23 12:41:19
Are Spring Boot supports different properties based on the Spring active profile?
1.Yes
2.No
Posted Date:-2020-11-23 12:43:30
Can we keep two separate files for development and production to run the Spring Boot application?
1.Yes
2.No
Posted Date:-2020-11-23 12:42:54
Can we provide more than one application properties?
1.Yes
2.No
Posted Date:-2020-11-23 10:31:53
In Spring Boot, properties are kept in the application.properties file under the classpath?
1.Yes
2.No
Posted Date:-2020-11-23 11:39:10
Set/Change port in Spring Boot?
1.server.port = 9090
2.server.ports = 9090
3.servers.port = 9090
4.servers.ports = 9090
Posted Date:-2020-11-23 11:52:03
Spring Boot supports Application Properties support ?
1.Yes
2.No
Posted Date:-2020-11-23 10:12:01
Spring Boot, properties are kept in the application.properties file
1.Yes
2.No
Posted Date:-2020-11-23 10:12:31
The application.properties file is located in the src/main/resources directory in Spring boot ?
1.Yes
2.No
Posted Date:-2020-11-23 11:43:36
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
Posted Date:-2020-11-23 12:21:49