Return CSV file for Spring REST service

There might be a situation where a service needs to produce a CSV ( Comma-separated values) file as output. It should allow for the file to be downloaded – e.g. prompt the user to save the file. Version: Spring version 5.1.5.RELEASE View predefined media types in Spring. There is no media type for “text/csv”. Not […]

Read more
Do not let IntelliJ Java versions irk Maven

This is to help remember the maven compiler plugin that can resolve a common issue that people have experienced with Maven projects in IntelliJ. There is a possibility of the version resetting to an old version of Java which would fail to automatically import and leave everything red. Set the source and target versions to […]

Read more
Spring Boot repackaged JAR

The Spring Boot Maven plugin is useful for repackaging a JAR that can be run via the command line using java. Spring Boot Maven Plugin – overview Spring Boot Maven Plugin – usage Example: Running: Let param.extra be an @Value attribute from an @Configuration class. Resources profile structure can be kept simple: application.properties application-dev.properties application-sandbox.properties […]

Read more
Git post-receive hook to trigger Jenkins build

The following post is an example of how to set up a git post-receive hook to trigger a Jenkins build. As soon as someone checks in new code and pushes it to the develop branch then we need to ensure a fast feedback loop. Hook templates For every git project there will be a folder […]

Read more
Add a hamster wheel to your CI pipeline

Email notifications or displaying the build pipeline on monitors are some of the ways to know the build status and whether or not something failed. What about adding a hamster wheel? It is both visual, audible and fun. This post will help you get started. Let’s name this hamster Whisker and get it setup to […]

Read more
K8s minikube and kubectl

This article contains the steps to setup Kubernetes (K8s) minikube and kubectl on an Ubuntu instance. The Ubuntu version used is 16.04.3 that is running in a VM. The official minikube GitHub repository will have the steps for various environments. There are a few tweaks needed. The below steps gets straight down to business. Install minikube […]

Read more
Set up an Ubuntu VM for Dev – part 2

In part 1 we were able to get an Ubuntu VM up and running. In part 2 we will setup a shared drive and install the development tools: Git, Docker, OpenJDK, .NET Core and Node.js. Setup a shared drive If you want a folder that you can share files between the host OS and VM, then a […]

Read more
Set up an Ubuntu VM for Dev – part 1

The following article contains the steps to setup Ubuntu in a VM. The virtualization application being used is VirtualBox on a Windows 10 host OS. This will be used for a local development environment with Git, Docker, Java, .NET Core and Node.js. Install VirtualBox If you do not already have VirtualBox installed then head over […]

Read more
Theme your Agile Sprint Board

Imagine watching the worst movie you have ever seen, now imagine watching that everyday. That is what a boring Agile Sprint Board can turn into. Whether it be a Kanban or Scrum board there is always a way to make it more interesting by giving it a theme. Enjoy those daily stand-up meetings. 1-Find a […]

Read more
Moving to WAS 9 – what to ponder

The move to a new Application Server can either be the greatest thing since sliced bread or the worst nightmare ever. Whether it is a forced migration from an archaic version that is no longer supported or a move to greener pastures. From the opinions of people in industry there is a lot said about […]

Read more