Spring%20Boot/Spring%20Boot%20Common%20Test Sample Test,Sample questions

Question:
@SpringBootApplication can used to exclude any package without  using basePackage filter?

1.Yes

2.No

Posted Date:-2020-11-23 05:24:10


Question:
Can we disable a specific auto-configuration class?

1.Yes

2.No

Posted Date:-2020-11-23 07:47:05


Question:
Can we disable the default web server in the Spring Boot application?

1.Yes

2.No

Posted Date:-2020-11-23 08:08:39


Question:
Can we exclude any package without using then basePackages filter ?

1.Yes

2.No

3.Wrong qusetions

4.Wrong Options

Posted Date:-2020-11-23 04:36:59


Question:
Can we override or replace the Embedded Tomcat server in Spring Boot?

1.Yes

2.No

Posted Date:-2020-11-23 08:11:42


Question:
Choose correct Code Snippet used to exclude

1.@SpringBootApplication(exclude ={Salary. class}) Public class Empo{}

2.@SpringBootApplication(exclude =={Salary. class}) Public class Empo{}

3.@SpringBootApplication(include !={Salary. class})

4.None

Posted Date:-2020-11-23 05:32:09


Question:
Choose name of annotations @SpringBootApplication annotation is equivalent to  using with their default attribute 

1.@Configuration

2.@EnableAutoConfiguration

3.@ComponentScan

4.All above three

Posted Date:-2020-11-23 04:23:44


Question:
How we can disable a specific auto- configuration class?

1.Using exclude attribute of @EnableAutoConfiguration

2.Using include attribute of @DisableAutoconfiguration

3.Using not exclude attribute of @DisabaleAutoConfiguration

4.Using not include attribute of @EnableAutoConfiguration

Posted Date:-2020-11-23 07:52:46


Question:
Is this possible to change the port of Embedded Tomcat server in Spring boot?

1.Yes

2.No

Posted Date:-2020-11-23 08:12:21


Question:
Spring Boot provides a trickier option for achieving this without touching the component scan?

1.Yes

2.No

Posted Date:-2020-11-23 04:58:00


Question:
spring.main.web-application-type=none
is use to disable the default web server in the Spring Boot application

1.true

2.flase

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


Question:
Springboot enables the developers to us ?

1.Single Annotation

2.Multiple Annotations

3.Both

4.None

Posted Date:-2020-11-23 04:28:10


Question:
Springboot provides?

1. Loosely coupling features.

2.Hard coupling features.

3.Very Hard coupling features.

4.Tit coupling features.

Posted Date:-2020-11-23 04:31:27


Question:
Syntax for specific auto-configuration classes that we do not want are being applied?

1.By using "exclude" @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})

2.By using "not include" @EnableAutoConfiguration(enclude!={DataSourceAutoConfiguration.class})

3.Both

4.None

Posted Date:-2020-11-23 07:56:17


Question:
Syntax for Spring Boot provides the facility to control the list of auto-configuration classes to exclude by using the spring.autoconfigure.exclude property
application.properties
//By using property file

spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration

1.true

2.flase

Posted Date:-2020-11-23 07:59:57


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!