Home >Backend Development >PHP Tutorial >The difference between Repository and services
I feel like many people use these two names interchangeably
I feel like many people use these two names interchangeably
The effect is the same
The data access layer uses @Repositry
The business logic layer uses @Service
The effect is the same. In the early days, @Component was used directly, but later Spring started to make distinctions. Currently, @Component can still be used