Skip to main content

Java Object to/from JSON – Jackson 2

1.) Overview In this tutorial, we discuss how to serialize Java Object into JSON and deserialize JSON String into Java Object using Jackson 2. 2) Dependencies Add these dependencies to pom.xml.

3) Serialize and Deserialize using ObjectMapper We are using User.java class to serialize and deserialize throughout this tutorial.

3) JSON to Java […]

Read More

spring-boot logo

Spring Boot REST web service – Part 2 – CRUD operations, Service Layers, Assemblers and Utility classes

We already implemented simple REST web service in the previous tutorial. Building a simple REST Service with Spring Boot Spring Boot REST web service – Part 1 – Spring Data and MySQL In this tutorial, I am going to implement new functionalities on top of the previous tutorial. Mainly, focusing on these following areas. CRUD Operations Service […]

Read More

ArrayList Sorting :- Part 1 – using Comparable and Comparator

In this tutorial, we’ve shared few examples of sorting ArrayList. String ArrayList Collections.sort() and Collections.reverseOrder() can be used for sorting and reverse sorting.

Read More

RSS
Follow by Email
Facebook
Facebook
Google+
http://mydevgeek.com/category/java/page/2
Twitter