Archive for the 'Java' Category

Etsy API

Monday, October 3rd, 2022

How to use the Etsy API by using the OpenAPI spec to generate code for Java Spring Boot.

(more…)

JPA JsonNode MySQL JSON Converter

Thursday, May 7th, 2020

How to implement a Spring Boot domain object / JPA entity that handles Stripe event webhook callback, using a custom @Convert to save to a MySQL database as a json type column.

(That should cover the buzzwords, Google bait and scare off anyone who doesn’t care.)

(more…)

Creating a SSH Tunnel in Java

Sunday, April 9th, 2017

How to create a SSH tunnel in a Java app from a localhost port through a jump box to a specific port on a server. Allowing a connection to the remote server port as if it was a localhost port.

Examples found online provided only one ‘hop’, not the double ‘hop’ needed. The code below supports 2 hops, but in theory could be used to support any number of hops.

(more…)