如何确定在春季启动时是否从eh-cache返回了一个对象?
自此以来,每次都会将链接附加到缓存的对象。
ResponseEntity<User> methodLinkBuilderforSelf = ControllerLinkBuilder.methodOn(this.getClass())
.retrieveUserById(user.get().getIdNum());
Link selfLink = ControllerLinkBuilder.linkTo(methodLinkBuilderforSelf).withSelfRel();
List<User> methodLinkBuilder = ControllerLinkBuilder.methodOn(this.getClass()).retrieveAllUsers();
Link allLink = ControllerLinkBuilder.linkTo(methodLinkBuilder).withRel("all-users");