Sharing a common xsd library accross multiple xjc compilations

How to share common xsd accross independent XML schemas and how to handle common xsd libraries across different xjc compilations


Maven profile management

This post describes common setup to handle environment specific customization of java projects through maven profile

Handle CORS with Spring Boot

What is CORS CORS stands for Cross Origin Request Resource Sharing. CORS is a protocol that defines how a client (the browser) and a server negociate allowing the handling of cross origin requests via HTTP headers. Why do I see... Continue Reading →

JAXB bindings by example

Introduction JAX-B bindings is a great tool when it comes to customizing the generation of Java classes from a set of XML schema using xjc. The output of a xjc compilation can be customized through: Embedded bindings: where bindings is... Continue Reading →

Handling CDATA with JAXB

How to handle formatted content using JAX-B using the following methods:

  1. standard string character escaping
  2. Base64 encoding
  3. CDATA ecapsulation

Controlling character escaping with jaxb

When marshalling Java objects to XML documents using JAXB, the default behavior for the Marshaller and Unmarshaller is to respectively escape and unescape the XML special characters. Sometimes, there is a specific need to have more control over this process to either change it or simply disable it. This post shows how to control this behavior.

Jackson serialization and hibernate Lazy loading

dependency pom.xml configure Jackson Add or update your MVC configuration so as to register the Hibernate Module to the existing MappingJackson2HttpMessageConverter

MVC configuration with spring boot

how to configure WebMVC with spring boot using a Java only method

Powered by

Up ↑