Skip to main content

Posts

Spring Boot 4 Ready

Recent posts

Most questions in 2025

Java Spring Boot Senior Engineer Interview Questions & Answers A complete interview preparation guide for Senior Java Engineers, Spring Boot Developers, and Backend Technical Leads covering Java, Spring Boot, Microservices, Cloud, Database, Security, and Performance Engineering concepts. Target Audience: Senior Java Developers Spring Boot Engineers Microservice Architects Backend Technical Leads Table of Contents 1. Describe Yourself 2. RESTful APIs and Standards 3. Latest Spring Boot Version & Features 4. Java Optional 5. WebFlux Reactive Programming 6. WebFlux Retry Mechanism 7. WebFlux Pagination APIs 8. Circuit Breaker 9. Resilience Patterns 10. Rate Limiter 1. Describe Yourself A senior engineer introduction should highlight technical experience, architecture knowledge, ownership, and problem-solving capabilities. Sample Answer I am a Java backend engineer with 7+ years of experience desi...

Aspect Oriented Programming

AOP - Aspect Oriented Programming In enterprise applications, developers often need to implement cross-cutting concerns such as logging, auditing, security, performance monitoring, and transaction management. Embedding this logic inside every business method leads to duplicate code, poor maintainability, and increased development effort. Aspect-Oriented Programming (AOP) solves this problem by separating cross-cutting concerns from the core business logic. These concerns are implemented as Aspects , allowing centralized management without modifying the business code. Real-world Examples Application Logging Auditing Performance Monitoring Security Checks Exception Handling Transaction Management (@Transactional) AOP Architecture Client Request │ ▼ Before Advice │ ▼ Business Method │ ┌────────...

Spring 3.0 Security

Spring 3.0 FornLogin Example  This post will help us to configure the spring security for the form login.  Spring Boot Main Class  package com.alpha.spring.security ; import org.springframework.boot.SpringApplication ; import org.springframework.boot.autoconfigure. SpringBootApplication ; @SpringBootApplication public class SpringSecurityApplication { public static void main (String[] args) { SpringApplication.run(SpringSecurityApplication. class, args) ; } } Controller  @PreAuthorize( " hasAuthority( 'ROLE_USER' ) " )  This annotation will help us to do method level authorization in order to achieve this we have to add  @EnableMethodSecurity in the configuration  package com.alpha.spring.security.controller ; import java.util.Arrays ; import java.util.List ; import org.springframework.security.access.prepost.PreAuthorize ; import org.springframework.web.bind.annotation.RequestMapping ; import org.springframework.web.bind.annotation.RestCo...

Eureka Server and Client

 Server Code @ SpringBootApplication @ EnableEurekaServer public class DiscoveryAppApplication {     public static void main( String [] args) {         SpringApplication.run(DiscoveryAppApplication.class, args);     } } application.properties server.port= 8761 eureka.client.register-with-eureka= false eureka.client.fetch-registry= false Client Code @ SpringBootApplication public class AppApplication {     @ Bean     @ LoadBalanced     public Builder getWebClient() {         return WebClient.builder();     }     public static void main( String [] args) {         SpringApplication.run(AppApplication.class, args);     } } application.properties spring.application.name=data-fetcher server.port= 8081 eureka.client.serviceUrl.defaultZone= ${EUREKA_URI : http : //localhost:8761/eureka} eureka.instance.preferIpAddress : true