Home Page2019-02-28T07:29:19+00:00

Spring Cloud Config Server on Kubernetes – Part 2

This is the second of a two part article about building centralised configuration with Spring Cloud Config Server. In this post we'll take the the two Spring Boot services created in part one and run them on Kubernetes. We'll initially deploy to a local cluster before stepping things up [...]

By |April 20th, 2021|Categories: Kubernetes|Tags: , , , , |

Spring Cloud Config Server on Kubernetes – Part 1

This is the first of a two part article where I'll show you how to use Spring Cloud Config Server to build centralised configuration for your microservices.  In this first post we'll create a Config Service that pulls its data from a Git repo and exposes it to other services. [...]

By |April 11th, 2021|Categories: Kubernetes|Tags: , , , , |

Running Multiple Spring Boot Services with Docker Compose

In this post we'll look at how Docker Compose makes it easier to configure and run multiple containers in your local environment. Why Docker Compose? First up, you don't need Docker compose to run multiple containers. You can do this just fine by manually starting and stopping the containers [...]

By |August 25th, 2020|Categories: Uncategorised|

Spring RestTemplate Request & Response Logging

It's sometimes useful to log HTTP requests and responses when working with a Spring RestTemplate. If you need fine-grained control over exactly what's logged you can use a custom interceptor to add logging before and after the remote call. Creating an Interceptor You'll need to create a class that [...]

By |December 17th, 2019|Categories: RestTemplate, Spring|

Configuring a Custom ObjectMapper for Spring RestTemplate

Configuring a Custom ObjectMapper for Spring RestTemplate One of the great things about RestTemplate is its simplicity. You simply instantiate it like this... RestTemplate restTemplate = new RestTemplate(); and off you go. Under the hood Spring automatically creates and registers a number of message converters to handle various data [...]

By |December 3rd, 2019|Categories: RestTemplate|Tags: , , , |

Jackson JSON Deserialization – UnrecognizedPropertyException

Whats the Problem? I ran into a UnrecognizedPropertyException today trying to deserialize the following JSON. { "Places": [{ "PlaceId": "LOND-sky", "PlaceName": "London", "CountryId": "UK-sky", "RegionId": "", "CityId": "LOND-sky", "CountryName": "United Kingdom" }, { "PlaceId": "LHR-sky", "PlaceName": "London Heathrow", "CountryId": "UK-sky", "RegionId": "", "CityId": "LOND-sky", "CountryName": "United Kingdom" }] } [...]

By |November 26th, 2019|Categories: Jackson, JSON|
Go to Top