Mapping Domain & Data Transfer Objects in Spring Boot With MapStruct

April 2, 2018 Fernando Berrios

In a recent project, I needed to map a series of Java model objects that were mostly similar but had to be kept separate (data transfer object, domain object, API response object). In the past, I’ve had plenty of success using ModelMapper, but after attempting some complex mappings and getting frustrated with runtime exceptions due […]

Circuit Breaker Pattern in Spring Boot

April 26, 2017 Fernando Berrios

The purpose of this blog post is to give a brief overview of the circuit breaker pattern, where it can be used, and show a few examples of the excellent support for this pattern in Spring Boot provided by Netflix’s Hystrix library. The concept of the circuit breaker pattern is borrowed from the field of […]

Aspect-Oriented Programming in Spring Boot Part 3: Setting up AspectJ Load-Time Weaving

May 17, 2016 Justin Wilson

This is the final part in a three-part series on aspect-oriented programming (AOP) with Spring Boot, which covers how to set up AspectJ load-time weaving (LTW). Part one covers how to make your own aspect, and part two details the differences between using Spring for AOP and using AspectJ. Getting AspectJ load-time weaving working in […]

Aspect-Oriented Programming in Spring Boot Part 2: Spring JDK Proxies vs CGLIB vs AspectJ

May 9, 2016 Justin Wilson

This is the second entry in a three-part series on aspect-oriented programming (AOP) with Spring Boot. This entry covers the differences between using AOP with Spring JDK proxies, CGLIB proxes, and AspectJ load-time weaving (LTW). The first entry covered how to write your own aspect, and the last entry will contain detailed AspectJ LTW setup […]

Aspect-Oriented Programming in Spring Boot Part 1: Making Your Own Hystrix Aspect

May 3, 2016 Justin Wilson

This is the first entry in a three-part series covering aspect-oriented programming (AOP) in Spring Boot using Spring proxies (with and without CGLIB) and AspectJ load-time weaving (LTW). A sample project that uses all three methodologies can be found here at GitHub. This entry covers the basics of AOP. What Is Aspect-Oriented Programming? Aspect-oriented programming […]

How to Create Apps for Google Glass Using Mirror API With Spring Boot: Part 3 Making Mirror API Calls

May 28, 2014 Justin Wilson

This three-part blog series is exploring how to create apps for Google Glass using Mirror API with Spring Boot. Last time we looked at the login process and today we’re going to explore how to make mirror API calls. The following class diagram details the flow that will be used to make a Mirror API […]

How to Create Apps for Google Glass Using Mirror API With Spring Boot: Part 2 Logging In

May 21, 2014 Justin Wilson

This three-part blog series is exploring how to create apps for Google Glass using Mirror API with Spring Boot. Last time we looked at the Spring Boot configuration and today we’re going to dive into the login process. Logging in With Google – Client ID and Secret The first step in allowing users to log […]

How to Create Apps for Google Glass Using the Mirror API With Spring Boot – Part 1

May 14, 2014 Justin Wilson

Now that Google Glass has become available for public purchase in the US, you may have access to a Glass device and be interested in making an application for it. The easiest way to do this is with Google’s Mirror API, which is a new way to write apps that actually run on webservers instead […]