🧪 Spring Boot MCQ Quiz Hub

Spring Boot Common Test

Choose a topic to test your knowledge and improve your Spring Boot skills

1. Choose name of annotations @SpringBootApplication annotation is equivalent to using with their default attribute




2. Springboot enables the developers to us ?




3. Springboot provides?




4. Can we exclude any package without using then basePackages filter ?




5. Spring Boot provides a trickier option for achieving this without touching the component scan?




6. @SpringBootApplication can used to exclude any package without using basePackage filter?




7. Choose correct Code Snippet used to exclude




8. Can we disable a specific auto-configuration class?




9. How we can disable a specific auto- configuration class?




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




11. Syntax for Spring Boot provides the facility to control the list of auto-configuration classes to exclude by using the spring.autoconfigure.exclude property<br> application.properties<br> //By using property file<br><br> spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration




12. Can we disable the default web server in the Spring Boot application?




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




14. Can we override or replace the Embedded Tomcat server in Spring Boot?




15. Is this possible to change the port of Embedded Tomcat server in Spring boot?