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

Enable JMX on tomcat

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.

Apache httpd status page

Various links to get global status, load balancer status and module status with apache httpd

Apache httpd forward proxy

The following snippet adds a forward proxy to an apache web server in a VirtualHost listening on port 9090. To use, configure your browser so as to use your apache server as a proxy on port 9090

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

Add HTTPS support to a tomcat web application

Securing a tomcat web application through an apache HTTPS reverse proxy or using tomcat HTTPS support

Powered by

Up ↑