Sometimes can be useful extract some specific attribute from a JSON string. This can be done easily with com.google.code.gson library in this way. Let’s consider the following JSON: This is the maven dependancy: And finally the code to extract the value of “field2”:

Read More →

The property sources that are added to you application by the bootstrap context are often “remote” (e.g. from a Config Server), and by default they cannot be overridden locally, except on the command line. If you want to allow your applications to override the remote properties with their own system properties or config files, the […]

Read More →