Java Architecture for XML Binding (JAXB) is a library that helps to bind XML schemas and Java representations. JAXB provides you with a mechanism to marshal Java objects into XML and the other way around – unmarshal XML into Java objects. XML is an industry standard for defining the contents of your message. XML alongContinue reading

1
Share

One common requirement in Java application is to iterate through the elements of a collection. Prior to Java 8, the three most common ways to iterate through a collection are by using the while loop, for loop, and enhanced for loop. As the Java Collection interface extends Iterable, you can also use the hasNext() andContinue reading

1
Share

Prior to Jackson 1.2, the only way to serialize or deserialize JSON using Jackson was by using one of the following two methods: Adding annotations to modify the POJO classes Writing custom serializers and deserializers Now imagine you want to serialize or deserialize a 3rd party POJO which you don’t have access to its sourceContinue reading

2
Share
, , ,

When developing Spring Boot applications, you need to tell the Spring Framework where to look for Spring components. Using component scan is one method of asking Spring to detect Spring managed components. Spring needs the information to locate and register all the Spring components with the application context when the application starts. Spring can autoContinue reading

4
Share

While developing applications, we often need to generate random numbers. Java provides support to generate random numbers primarily through the java.lang.Math and java.util.Random classes. In this post, I will discuss different ways to generate random numbers based on different types of requirements. Random Numbers using the Math Class Java provides the Math class in theContinue reading

0
Share

Jackson is a suite of data-processing tools for Java comprising of three components: Streaming (jackson-core) defines low-level streaming API, and includes JSON-specific implementations. Annotations (jackson-annotations) contains standard Jackson annotations Databind (jackson-databind) implements data-binding (and object serialization) support on streaming package. This package depends both on streaming and annotations packages In this post, I will explainContinue reading

0
Share

GSON is a very popular Java library for work with JSON. JavaScript Object Notation (JSON) is a lightweight data exchange format. Like XML, JSON provides a way of representing object that is both human readable and machine processable. JSON is the most commonly used data exchange format on the Web. In the Java ecosystem, severalContinue reading

2
Share
,

Introduction I’m quickly becoming a fan of using CircleCI for CI builds. I’m finding that CircleCI is a very powerful platform. Recently, I configured CircleCI to build a Spring Boot Microservice. The microservice was generated by JHipster. CircleCI is a online resource which uses Docker containers to run your CI builds. Since your build isContinue reading

2
Share