Skip to content

Commit c699ebf

Browse files
Removed unused code from Controller class
1 parent 4b6769a commit c699ebf

File tree

1 file changed

+0
-7
lines changed
  • SpringBoot/jpa-jdbc-transactional-sorting-pagination/src/main/java/com/mithun/springboot/transactional/controller

1 file changed

+0
-7
lines changed

SpringBoot/jpa-jdbc-transactional-sorting-pagination/src/main/java/com/mithun/springboot/transactional/controller/EmployeeController.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.mithun.springboot.transactional.controller;
22

3-
import com.fasterxml.jackson.core.JsonProcessingException;
4-
import com.fasterxml.jackson.databind.ObjectMapper;
53
import com.mithun.springboot.transactional.model.Employee;
64
import com.mithun.springboot.transactional.model.EmployeeDetailsDto;
75
import com.mithun.springboot.transactional.service.EmployeeService;
@@ -13,8 +11,6 @@
1311
import org.springframework.validation.annotation.Validated;
1412
import org.springframework.web.bind.annotation.*;
1513

16-
import java.util.List;
17-
1814
@Slf4j
1915
@RestController
2016
@RequestMapping(value = "/employees")
@@ -24,9 +20,6 @@ public class EmployeeController {
2420
@Autowired
2521
EmployeeService employeeService;
2622

27-
@Autowired
28-
ObjectMapper objectMapper;
29-
3023
@PostMapping("/save")
3124
public String saveEmployees(@RequestBody EmployeeDetailsDto employeeDetailsDto){
3225
employeeService.saveEmployees(employeeDetailsDto);

0 commit comments

Comments
 (0)