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

The difference between Repository and services

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-03-03 08:20:01
Original
2329 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:
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
Latest Issues
Install JAVA
From 1970-01-01 08:00:00
0
0
0
Unable to install java
From 1970-01-01 08:00:00
0
0
0
Can java be used as the backend of the web?
From 1970-01-01 08:00:00
0
0
0
Is this in Java language?
From 1970-01-01 08:00:00
0
0
0
Help: JAVA encrypted data PHP decryption
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template