Home  >  Article  >  Backend Development  >  The difference between Repository and services

The difference between Repository and services

WBOY
WBOYOriginal
2016-12-05 13:44:082274browse

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

Statement:
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