Structured study notes for every video in Shrayansh's Spring Boot from Basics
to Advanced playlist. Each topic has its own NOTES.md with concepts, code
examples, configuration, and gotchas.
# Read the notes for a topic
cat src/main/java/revision/_06_bean_lifecycle/NOTES.md
# Build / run (requires Maven + internet for the first build)
./mvnw spring-boot:run # if mvnw is added
mvn spring-boot:run # or system MavenThe pom.xml pulls Spring Boot 3.3 + starters (web, data-jpa, security, aop,
actuator, hateoas) + H2 + JJWT — so any code snippet from these notes can be
copied into your own @SpringBootApplication class to experiment.
- Intro: Spring Boot vs Spring MVC vs Servlets
- Project setup & Layered architecture
- Maven & lifecycle
- Controller-layer annotations
- Beans, lifecycle & IoC
- Dependency Injection
- Bean scopes
- Dynamically initialised beans (
@Value) @ConditionalOnProperty@Profile
- AOP (Aspect-Oriented Programming)
@TransactionalPart 1@TransactionalPart 2 — Declarative vs Programmatic, Propagation@TransactionalPart 3 — Isolation levels@AsyncPart 1 — ThreadPoolExecutor@AsyncPart 2 — Interview gotchas
- Custom Interceptors & Custom Annotations
- Filters vs Interceptors
- HATEOAS
ResponseEntity& HTTP response codes- Exception handling (
@ControllerAdvice,@ExceptionHandler)
- JPA Part 1 — JDBC Template
- JPA Part 2 — Setup, architecture, entity lifecycle
- JPA Part 3 — L1 caching
- JPA Part 4 — L2 caching
- JPA Part 5 — Mapping DTO ↔ Table (
@Table,@Column,@Id,@Embeddable) - JPA Part 6 —
@OneToOneuni & bidirectional - JPA Part 7 —
@OneToMany,@ManyToOne,@ManyToMany - JPA Part 8 — JPQL, Derived queries, N+1, joins, pagination
- JPA Part 9 — Native query & Criteria API
- JPA Part 10 — Specification API
- Web attacks: CSRF / XSS / CORS / SQL Injection
- Security Part 1 — Architecture & setup
- Security Part 2 — Multiple users (in-memory, DB)
- Security Part 3 — Form-based stateful auth
- Security Part 4 — Basic auth (stateless)
- JWT explained
- Security Part 6 — JWT implementation
- OAuth 2.0 explained
- Security Part 8 — OAuth implementation
- Security Part 9 — Method security (
@PreAuthorize,@PostAuthorize)