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

REST HATEOAS with Spring

REST HATEOAS with Spring The Richardson maturity model breaks the REST architectural style into various levels of maturity. Level zero describes a system that uses HTTP as a transport mechanism only (also known as URI tunnelling). A single URI and HTTP verb is typically used for all interactions with POX [...]

By |July 18th, 2017|Categories: REST, Spring Boot|Tags: , , , , |

REST Endpoint Testing With MockMvc

REST Endpoint Testing With MockMvc In this post I'm going to show you how to test a Spring MVC Rest endpoint without deploying your application to a server. In the past, full integration tests were the only meaningful way to test a Spring REST endpoint. This involved spinning up [...]

By |May 25th, 2017|Categories: REST, Spring Boot, Testing|Tags: , , , , , , |

Java Concurrency – Synchronization

Java Concurrency - Synchronization In my last post we looked at running tasks across multiple threads, asynchronously using the ExecutorService. Accessing and manipulating an object from multiple threads simultaneously can pose a problem when the object in question holds state. If multiple threads attempt to modify shared state, behaviour can become [...]

By |April 12th, 2017|Categories: Core Java|Tags: , , , , |

Java Concurrency – Multi Threading with ExecutorService

Multi Threading with ExecutorService In this post we'll look how the ExeutorService can be used to run multi-threaded asynchronous tasks. We'll start by creating threads directly and then move on to explore the ExeutorService and how it can be used to simplify things. Creating Threads Directly Before the Executor [...]

By |March 28th, 2017|Categories: Core Java|Tags: , , , , |

Apache CXF – Contract First Web Services

Apache CXF - Contract First Web Services I wrote a post a few years ago detailing a step by step guide to building a contract first web service using Spring.  I recently started working with Apache CXF and thought it would be worth putting together a more up to date [...]

By |October 5th, 2016|Categories: Spring Boot, Web Services|Tags: , , , , , , |