Spring AOP (Aspect Oriented Programming) is one of the key features of the Spring Framework. While Spring’s DI (Dependency Injection) decouples the application objects, Spring AOP decoupled application-wide concerns such as transactions, security, and logging from the objects in which they are applied.

What is Aspect-Oriented programming?

As stated earlier AOP decouples application-wide concerns…

@Repository, @Service, and @Controller are extended from @Component. Which means technically all are the same. But there are some differences in usages and functionalities.

@Repository, @Service, and @Controller are extended from @Component

What is the similarity between these?

All of them allow Spring to detect them as Spring-managed Beans. It is called as component-scanning. …

Prasad Thilakarathne

Lead Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store