Upgrade to Spring Boot 2.3 and related changes.
This commit is contained in:
@@ -525,7 +525,7 @@ public class SupervisorController {
|
||||
public ResponseEntity<EntityModel<Supervisor>> findOne(@PathVariable Long id) {
|
||||
|
||||
EntityModel<Manager> managerResource = controller.findOne(id).getBody();
|
||||
EntityModel<Supervisor> supervisorResource = new EntityModel<>(
|
||||
EntityModel<Supervisor> supervisorResource = EntityModel.of(
|
||||
new Supervisor(managerResource.getContent()),
|
||||
managerResource.getLinks());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user