Skip to content

Instantly share code, notes, and snippets.

View mingyu-lee's full-sized avatar

Mingyu Lee mingyu-lee

View GitHub Profile
@slmanju
slmanju / RestTemplateHelper.java
Created January 25, 2018 05:46
Generic RestTemplate wrapper
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.CollectionType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
package document;
import java.util.List;
/**
* A naive implementation of the Document abstract class.
*/
public class BasicDocument extends Document
{
/** Create a new BasicDocument object