0
0
Spring Bootframework~5 mins

Project structure walkthrough in Spring Boot - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Asrc/test/java
Bsrc/main/java
Csrc/main/resources
Dtarget/classes
Where do you place configuration files like application.properties?
Asrc/test/resources
Bsrc/main/java
Csrc/main/resources
Dsrc/test/java
What is the purpose of the pom.xml file?
ATo manage dependencies and build settings
BTo store test cases
CTo write Java code
DTo hold static web files
Where should you put your unit tests?
Asrc/main/java
Bsrc/main/resources
Ctarget/test-classes
Dsrc/test/java
Why follow the standard Spring Boot project structure?
ATo help tools and developers understand the project easily
BTo confuse developers
CTo make the project harder to maintain
DTo avoid using build tools
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.