JavaThinking.com
Toggle Menu
Home
Online Kotlin Compiler
Tutorials
Spring Boot
Spring Cloud
Spring Data
Spring MVC
Spring Security
Blog
All Posts
Spring Boot Fundamentals
Test your understanding of Spring Boot core concepts and auto-configuration.
1. Which annotation is used to mark the main class of a Spring Boot application?
@SpringBootMain
@SpringBootApplication
@Application
@MainClass
2. Which of the following are core features of Spring Boot?
Auto-configuration
Embedded servers
Explicit XML configuration
Starter dependencies
Manual bean registration
3. Spring Boot requires explicit XML configuration for most applications.
True
False
4. What is the default embedded server used by Spring Boot for web applications? (one word)
5. Which file is the default for external configuration in a Spring Boot application?
config.xml
application.properties
spring.config
app.settings
6. Which of these are valid Spring Boot starter dependencies?
spring-boot-starter-web
spring-boot-starter-data-jpa
spring-boot-starter-xml
spring-boot-starter-security
spring-boot-starter-manual
7. @RestController is a combination of @Controller and @ResponseBody.
True
False
8. What does Spring Boot Actuator primarily provide to monitor and manage applications? (one word, plural)
9. What is the default server port for a Spring Boot web application?
80
8080
8081
9090
10. Which annotations are used for dependency injection in Spring Boot?
@Autowired
@Inject
@Resource
@Component
@Service
11. Spring Boot DevTools provides automatic application restart when files are modified during development.
True
False
12. What configuration file format uses indentation and colons instead of key=value pairs? (file extension)
13. What does @SpringBootApplication combine?
@Configuration, @EnableAutoConfiguration, @ComponentScan
@Controller, @Service, @Repository
@Autowired, @Value, @Resource
@RestController, @ResponseBody, @RequestMapping
14. What are benefits of using Spring Boot starters?
Reduced boilerplate configuration
Automatic dependency version management
Built-in security hardening
Simplified testing setup
Manual bean registration
15. Spring Boot applications must be deployed to an external application server (e.g., Tomcat) to run.
True
False
16. What annotation binds external configuration properties to a Java class? (starts with @Configuration)
17. Which dependency is required to add Spring Boot Actuator to a project?
spring-boot-actuator
spring-boot-starter-actuator
spring-actuator-starter
actuator-spring-boot
18. Which embedded servers are supported by Spring Boot?
Tomcat
Jetty
Undertow
Nginx
Apache HTTP Server
19. @Value annotation can inject values from application.properties into a bean.
True
False
20. Which class is used to bootstrap a Spring Boot application in the main method? (e.g., SpringApplication.run(...))
Reset
Answered 0 of 0 — 0 correct