Home > Backend Development > PHP Tutorial > The difference between Repository and services

The difference between Repository and services

WBOY
Release: 2023-03-03 08:20:01
Original
2298 people have browsed it

I feel like many people use these two names interchangeably

Reply content:

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template