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() {