Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Friday, December 7, 2018

Send GET/POST request with Spring Framework

Add httpclient to dependency list Below is an HttpUtil to send GET/POST request using Spring RequestTemplate

Saturday, December 24, 2016

An useful util to separate a list to multiple sublist in Java

Assume that you need to group/separate a List of object to multiple sublist with an specified size, below use should be useful.

Saturday, December 17, 2016

Java Send HTTP POST Request with x-www-form-urlencoded Format

The key thing is that we need to use the util URLEncoder to encode parameter name and its value.