Skip to content
Ameen Abozaid
Planned lessonJNR-011-L06

Project structure conventions

  • Lesson 6 of 8
  • Junior
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

follow the standard layout.

Planned topics

  • Main class in the top package; everything else below it.
  • src/main/resources: application.yml, templates, static files.
  • src/test/java mirrors the main packages.
  • Keep config classes in a config package.
Draft outline details

Demonstration

tree: com.shop.api with ShopApiApplication, products, config.

Check your understanding

Why must the main class be in the top package?

Show answer

So scanning covers all sub-packages.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.