This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
publicstatic <T> T getResponse(String url, Class<T> clazz){
if (url == null || url.isEmpty()) {
thrownew RuntimeException("url must not be null or empty");
}
return REST_TEMPLATE.getForObject(url, clazz);
}
You can get
complete working application from this link.
No comments:
Post a Comment