Recall & Review
beginner
What is the purpose of the
src/main/java directory in a Spring Boot project?It holds the main Java source code files where your application logic, controllers, services, and repositories live.
Click to reveal answer
beginner
What kind of files do you find in
src/main/resources?This folder contains configuration files like
application.properties or application.yml, static files, templates, and other resources your app needs.Click to reveal answer
beginner
What is the role of the
pom.xml or build.gradle file in a Spring Boot project?It manages project dependencies, build settings, and plugins. It tells the build tool how to compile and package your app.
Click to reveal answer
beginner
Where do you put your test code in a Spring Boot project?
Test code goes inside
src/test/java. This keeps tests separate from the main application code.Click to reveal answer
intermediate
Why is it important to follow the standard Spring Boot project structure?
It helps tools and developers understand your project easily, supports automatic configuration, and makes your app easier to maintain.
Click to reveal answer
Which folder contains your main application Java files in Spring Boot?
✗ Incorrect
The main Java source files are placed in src/main/java.
Where do you place configuration files like application.properties?
✗ Incorrect
Configuration files go into src/main/resources.
What is the purpose of the pom.xml file?
✗ Incorrect
pom.xml manages dependencies and build instructions.
Where should you put your unit tests?
✗ Incorrect
Unit tests belong in src/test/java.
Why follow the standard Spring Boot project structure?
✗ Incorrect
Standard structure helps tools and developers work efficiently.
Describe the main folders in a Spring Boot project and what each is used for.
Think about where your code, config, and tests live.
You got /4 concepts.
Explain why organizing your Spring Boot project with the standard structure is helpful.
Consider benefits for both developers and tools.
You got /4 concepts.