|
@@ -27,7 +27,7 @@ public class StudentExporter {
|
|
private StudentRepo studentRepo;
|
|
private StudentRepo studentRepo;
|
|
|
|
|
|
@GetMapping
|
|
@GetMapping
|
|
- public void export(@RequestParam StudentSpecification params, HttpServletResponse response) {
|
|
|
|
|
|
+ public void export(StudentSpecification params, HttpServletResponse response) {
|
|
|
|
|
|
List<Student> students = studentRepo.findAll(params.getSpecification());
|
|
List<Student> students = studentRepo.findAll(params.getSpecification());
|
|
List<StudentExpDTO> list = new ArrayList<>();
|
|
List<StudentExpDTO> list = new ArrayList<>();
|