Hello, as a result of the rest controller operation:
@RestController @RequestMapping("/api/department") public class DepartmentRestController { @Autowired private DepartmentService departmentService; @RequestMapping(value="/byId/{id}", method=RequestMethod.GET, produces="application/json") public DepartmentDto getDepartmentById(@PathVariable Long id) { return departmentService.getDepartmentById(id); } @RequestMapping(value="/byParent/{id}", method=RequestMethod.GET, produces="application/json") public List<DepartmentDto> getDepartmentsByParent(@PathVariable Long id) { return departmentService.getDepartmentsByParent(id); } @RequestMapping(value="/byName/{filter}", method=RequestMethod.GET, produces="application/json") public List<DictionaryItem> getDepartmentsByName(@PathVariable String filter) { return departmentService.getDepartmentsByName(filter); } @RequestMapping(value="/fullTree", method=RequestMethod.GET, produces="application/json") public DepartmentDto getDepartmentsFullTree() { return departmentService.getDepartmentsFullTree(); } @RequestMapping(method=RequestMethod.POST, produces="application/json") public DepartmentDto createDepartment(@RequestBody DepartmentDto entity) { return departmentService.createDepartment(entity); } @RequestMapping(method=RequestMethod.PUT) public void updateDepartment(@RequestBody DepartmentDto entity) { departmentService.updateDepartment(entity); } @RequestMapping(value="/byId/{id}", method=RequestMethod.DELETE) public void deleteDepartmentsByIds(@PathVariable Long id) { departmentService.deleteDepartment(id); } } It turns out this information:
{"id":1, "login":"ivanenko.ivanovich", "password":"example", "role":null, "lastName":"Иваненко", "firstName":"Иван", "middleName":"Иванович", "department":null, "email":null, "phone":"0954533452", "description":"Хороший студент", "testResults":null} How to use this information in java? Tell me please.
Как при помощи javascript обработать.....Как пользоваться этой информацией в java?....... so where exactly do you want to do something about it? - Alexey Shimansky