From eae850e25f6258a4be6d7e0525dc4fc3a8b58f32 Mon Sep 17 00:00:00 2001 From: soohyun Date: Thu, 5 Sep 2024 19:28:22 +0900 Subject: [PATCH] =?UTF-8?q?#50=20refactor:=20=EC=8A=B9=ED=98=84=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EA=B3=B5=EB=8F=99=EC=88=98=EC=A0=95=20Co-authored-?= =?UTF-8?q?by:=20soohyun<49307946+sss4920@users.noreply.github.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../insurance/controller/DentalInsuranceController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neighbor/src/main/java/com/likelion/neighbor/insurance/controller/DentalInsuranceController.java b/neighbor/src/main/java/com/likelion/neighbor/insurance/controller/DentalInsuranceController.java index 1fd4b2d..63230ea 100644 --- a/neighbor/src/main/java/com/likelion/neighbor/insurance/controller/DentalInsuranceController.java +++ b/neighbor/src/main/java/com/likelion/neighbor/insurance/controller/DentalInsuranceController.java @@ -6,6 +6,8 @@ import com.likelion.neighbor.insurance.domain.DentalInsurance; import com.likelion.neighbor.insurance.service.DentalInsuranceService; import jakarta.validation.Valid; +import lombok.RequiredArgsConstructor; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @@ -13,11 +15,11 @@ import java.util.List; @RestController +@RequiredArgsConstructor @RequestMapping("/api/dental-insurances") public class DentalInsuranceController { - @Autowired - private DentalInsuranceService dentalInsuranceService; + private final DentalInsuranceService dentalInsuranceService; @GetMapping public ResponseEntity getAllDentalInsurances() {