- The Inversion of Control (IoC) principle
- What Dependency Injection (DI) is
- Types of injection: constructor, setter, field injection
- Java annotations as configuration metadata
Spring Framework
Spring Application Context
- Spring stereotypes: `@Component`, `@Service`, `@Repository`, `@Controller`
- Injection with `@Autowired`
- Explicit bean definitions. `@Bean`, `@Configuration`
- The Spring `ApplicationContext`. `@ComponentScan`
- How Spring Boot works. `@SpringBootApplication`. Starters. Standard project structure
- Spring Initializr. Project structure. Spring Boot DevTools
- `@ConfigurationProperties`. `application.yml` structure
HTTP Protocol
Network Fundamentals. HTTP
- HTTP Definition. client/server model. request/response protocol
- TCP/IP. DNS
- HTTP methods (`GET`, `POST`, `PUT`, `DELETE`). Status codes. Headers
REST API
REST Architecture
- REST principles
- JSON as the data transfer format
- Testing REST endpoints with Postman
Implementing a REST API with Spring MVC
- `@RestController`, `@RequestMapping`
- `@GetMapping`, `@PostMapping`, `@PutMapping`, `@DeleteMapping`
- Binding request data: `@PathVariable`, `@RequestParam`, `@RequestBody`
- Returning responses with `@ResponseBody`. The DTO pattern
- Logging request body
- `@ExceptionHandler`. `@ControllerAdvice`
- Problem Details (RFC 9457): Spring Boot 4 native support. `ProblemDetail` and `ErrorResponse`
- Consistent error payloads across endpoints
Task Execution and Scheduling
Background Processing
- Asynchronous processing with `@Async`. `@EnableAsync`
- Scheduled jobs with `@Scheduled`. `@EnableScheduling`
- Thread pool configuration
- UseCase: mailing system notifications
Calling External APIs
Calling External APIs
- HttpClient. GET/POST to external APIs
-Spring `RestClient`: fluent builder. Error handling with `onStatus`
File Upload and Download
File Upload and Download
- Receiving files via REST. Validating file size and type
- Serving files with `Resource`
Controlling Transaction Boundaries with `@Transactional`
- `@Transactional` fundamentals: ACID guarantees, automatic rollback on `RuntimeException`. Class-level vs. method-level annotation
- Propagation and isolation: `REQUIRED` vs. `REQUIRES_NEW`
Advanced Spring Data JPA
Auditing and Custom Queries
- JPA auditing:`@CreatedDate`, `@LastModifiedDate`, `@CreatedBy`
- Query methods. `@Query` with JPQL and native SQL
Pagination and DTO Mapping
- Pagination with `Pageable` and `Page`.
- Interface-based projections
- MapStruct: automatic entity-to-DTO mapping
Authentication and Authorization
Authentication with Spring Security
- Form login vs. HTTP Basic authentication
- Session management strategies
- Password hashing with `BCryptPasswordEncoder`
- The `UserDetailsService` interface
Authorization
- Roles and authorities. Role-based access control
- Method-level security: `@PreAuthorize`, `@Secured`. `@EnableMethodSecurity`
JWT Authentication
- JWT (JSON Web Token): structure and validation
- Integrating JWT with Spring Security
- The `Bearer` token and the `Authorization` header
- Refresh tokens
Endpoints Security
Securing Endpoints and Best Practices
- Modern Spring Security configuration: the `SecurityFilterChain` bean
- CSRF protection. Stateless REST APIs vs. session-based applications
- `react-hook-form`: `useForm`, `register`, `handleSubmit`, `formState`. Uncontrolled inputs for performance. Error display
- Schema validation with Zod
Backend Integration
Communicating with a REST API from React
- The `fetch` API for HTTP requests
- Environment variables
CORS and Frontend Integration
- CORS definition and role. The Same-Origin Policy
- Preflight requests. Simple requests vs. preflight (`OPTIONS`) requests
- CORS configuration in Spring Boot
- Per-environment configuration
Authentication Flow in React
- Storing JWT: `HttpOnly` cookie vs. `localStorage`
- Security trade-offs and recommendations
- Global auth context. `React.createContext`. `useContext`
- Logout and full state cleanup. Protecting routes based on auth state
Global State Management
Redux and Global State Management
- Redux Toolkit (the modern Redux). `createSlice`. `configureStore`
- `useSelector`. `useDispatch`. Global state
Frontend Testing
Component testing
- Unit Testing. Jest
- Jest usage with TanStack Query
Communication Patterns over the Network
Pull-Based Communication
- Short polling. Long Polling
- Async Communication
Push-Based Communication
- Server-Sent events
- WebSockets
Introduction to DevOps and CI/CD
Docker and Application Containerization
- Images and containers
- `Dockerfile` for Spring Boot
- Essential Docker commands
- GitHub Actions concepts
- Anatomy of a YAML workflow. Common actions
- Docker workflow
Environments and Production Configuration
- Spring profiles and environment separation: `dev`, `staging`, `prod`. `application-prod.yml`
- Handling sensitive configuration
- What never goes into Git
Tools and Techniques for Application profiling
Performance tests for REST APIs
- K6
- Gatling
- Tool selection: trade-offs and criteria