LoginSignup
1
0

More than 1 year has passed since last update.

Controller, Service, Repository(簡単に)

Last updated at Posted at 2022-08-16

Controller, Service, Repository

1. Controller

ClientのRequestを受け取り、どのような処理をするか決定し、サービスに渡す。

2. Repository

DBのリソースを管理し、CRUDを処理する。

3. Service

Controllerから渡されたClientのRequestを処理し、Repositoryに渡す。Repositoryから得られたデータをJava文法に変換後、再びControllerに送る。@Serviceを使用することで、Serviceクラスの設定ができる。

sss.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0