component

Contains Spring components that handle cross-cutting concerns like authentication filters and entry points - create files here when you need reusable components that don't fit into other layers.

config

Contains Spring configuration classes for beans, security, and application setup - create files here when you need to configure Spring framework features or define application-wide settings.

controller

Contains REST controllers that handle HTTP requests and responses - create files here when you need to expose new API endpoints or handle web requests.

dto

Contains Data Transfer Objects for API requests and responses - create files here when you need to define the structure of data being sent to or received from the API.

exception

Contains custom exception classes and global exception handlers - create files here when you need to define custom error handling or specific exception types.

model

Contains JPA entity classes that represent database tables - create files here when you need to add new database entities or modify existing data models.

repository

Contains Spring Data JPA repository interfaces for database operations - create files here when you need to add new database query methods or data access patterns.

service

Contains business logic service classes that handle application functionality - create files here when you need to implement business rules, data processing, or coordinate between different layers.

util

Contains utility classes with static helper methods and constants - create files here when you need shared helper functions, validation rules, or application-wide constants.