Guest User

Untitled

a guest
Sep 20th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import com.fasterxml.jackson.annotation.JsonCreator;
  2. import com.fasterxml.jackson.annotation.JsonProperty;
  3. import org.springframework.hateoas.ResourceSupport;
  4.  
  5. public class MultiResource extends ResourceSupport {
  6. private final String content;
  7.  
  8. @JsonCreator
  9. public MultiResource(@JsonProperty("content") String content) {
  10. this.content = content;
  11. }
  12.  
  13. public String getContent() {
  14. return content;
  15. }
  16. }
Add Comment
Please, Sign In to add comment