Spring%20Boot/Spring%20Boot%20-%20Application%20Properties Sample Test,Sample questions

Question:
@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


Question:
Are Spring Boot supports different properties based on the Spring active profile?

1.Yes

2.No

Posted Date:-2020-11-23 12:43:30


Question:
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


Question:
Can we provide more than one application properties?

1.Yes

2.No

Posted Date:-2020-11-23 10:31:53


Question:
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


Question:
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


Question:
Spring Boot supports Application Properties support ?

1.Yes

2.No

Posted Date:-2020-11-23 10:12:01


Question:
Spring Boot, properties are kept in the application.properties file 

1.Yes

2.No

Posted Date:-2020-11-23 10:12:31


Question:
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


Question:
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


More MCQS

  1. Spring Boot Common Test
  2. Spring Boot - Bootstrapping
  3. Spring Boot - Logging
  4. Spring Boot - Application Properties
  5. Spring Boot - RESTful Web Services
  6. Spring Boot - Exception Handling
  7. Spring Boot - Interceptor
  8. Spring Boot - File Handling
  9. Spring Boot - CORS
  10. Spring Boot - Internationalization
  11. Spring Boot - Scheduling
  12. Spring MCQs
  13. SPRING BOOT MCQ QUESTIONS
  14. Spring MVC MCQ QUESTIONS AND ANSWER
  15. Spring Cloud MCQ QUESTIONS AND ANSWER
  16. Spring WebFlux MCQ OUESTIONS AND ANSWER
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!