Learned how to implement Soft Delete in Spring Boot with MySQL.
Covered:
- Hard Delete vs Soft Delete
- Using "isDeleted" in entities
- Custom JPA finder methods
- Fetching only active records
- Testing CRUD APIs with Postman
Built a Student Management API using Spring Boot and MySQL.
Covered database configuration, Entity mapping, Spring Data JPA, CRUD operations, and API testing with Postman.
Also understood how Controller, Service, Repository, and Database work together in a backend application.
Spring Boot learning update.
Covered CRUD operations, REST API mapping, and the Controller-Service-Repository architecture.
Also implemented a POST endpoint and tested API requests using Postman.
Continuing my Spring Boot journey.
learned about:
- Externalized configuration
- https://t.co/3YpsDPzAao vs application.yml
- @Value vs @ConfigurationProperties
- CommandLineRunner vs ApplicationRunner
Continuing my Spring Boot journey.
Today I learned about:
- Spring Core review
- Spring Boot Starter dependencies
- Spring Boot Starter Parent
- IoC Container and beans
- @SpringBootApplication
- @SpringBootConfiguration
- @ComponentScan
Continuing my Spring Boot journey.
Today I learned about Spring XML configuration:
- Creating and configuring beans using Beans.xml
- Constructor and Setter Injection
- Multiple beans of the same type
- Injecting collections
- @PostConstruct and @PreDestroy alternatives
Continuing my Spring Boot journey.
Today I learned about:
* Removing circular dependencies
* Bean scopes
* Singleton scope
* Prototype scope
* When to use different bean scopes
Also solved some sql problems on leetcode
Continuing my Spring Boot journey. Learned about
- Circular Dependency
- Circular Dependency in Core Java
- Why circular dependencies should be avoided
- Field and Setter Injection
Understanding more about how Spring handles dependencies.
Also solved some basic sql problems
Was busy with mid-sem exams, but continuing with my Spring Boot journey.
Today learned about:
- IoC Container
- Dependency Injection
- Constructor Injection
- @Autowired, @Primary and @Qualifier
- Spring Beans and @Bean
- Loose coupling with interfaces
- How Spring manages beans
Spring bean scopes — know these:
Singleton (default)
→ one instance per ApplicationContext
→ shared across entire app
Prototype
→ new instance every injection
→ use for: stateful beans
Request
→ one per HTTP request
→ web apps only
Session
→ one per HTTP session
→ web apps only
@Autowired internals:
→ Spring scans for matching bean by type
→ multiple matches → use @Qualifier
→ circular dependency → use @Lazy
common Spring Boot interview traps:
@Component vs @Service vs @Repository?
→ all register beans
→ @Repository = exception translation
→ @Service = business layer semantics
→ functionally same, semantically different
what Spring Boot feature
saved you the most time?
drop below 👇
#Java #JavaInterview #30DaysOfJava
Continuing my Spring Boot journey
Today I learned about:
- Loose coupling
- Dependency Injection
- Inversion of Control
- DI and IoC
- Role of Spring Framework