Archive For The “How To” Category
In this example, I am using the older Spring Security library which is: spring-security-oauth2 The JAR file can be found at Maven public repositories here. Dependency For my case, I am specifically using the release version below because I am trying to match some limitations (Such as what are available for download from a private…
Properties written in YAML format in my opinion reads better, far better for a human, especially when an application has tons of properties in there. Well, after all YAML was designed to be a human-readable data-serialization language. Officially it complies with JSON and is a subset of the latter (depends which version though as I’ve…
Not that long ago, I wrote about creating my own VPN (Virtual Private Network) for personal use with OpenVPN. In that post I also recounted how I used it for work purposes back when I was still in Singapore. That was several years ago. That time I had no issues connecting to the VPN server…
Now I have always thought about getting a VPN subscription for some time. Already researched a bit about it several times before. I always somehow keep on having second thoughts about getting one for several reasons that I won’t mention here. I’ve already implemented a VPN back when I was still in Singapore, using OpenVPN….
One of those people who is guilty of frequently relying on online 3rd party JSON formatting tools so messily formatted JSON strings or one-liners can be saner to read. If you are like me who deal with JSON almost every day for development, reading log messages, error tracing, etc., readability for JSON is a must….
How many countless times must I have found myself with a piece of JSON string that is formatted in a way that makes it very hard for me to read. Perhaps you’ve also experienced this several times too? As a back-end developer, having to deal with a lot of JSON is unavoidable. Heck, I deal…
The other day I was trying to assign a container of, let’s say, numbers distributed across 20 groups, to a container with a smaller size that can only hold up to 6 groups. The bigger group has values from 0 to 19. It also means that group 0 will always have zero number value, 1…
The other day, I was working on a huge JSON object that had a number of collections in it. The entire object had to be saved into a relational database, which means I was mapping out the raw JSON data to its logical representation as database tables. Though the object wasn’t that complicated, it did…
Using Repository interfaces, one can develop applications with an underlying database rapidly in Spring Boot. The Spring Data JPA handles the abstraction of the persistence layer quite well. Many times you probably won’t need anything else beyond what it has to offer. A lot can already be done with the exposed methods for data access…
As a back-end developer, consuming JSON objects is pretty much very common. I think it is second only to publishing data in JSON format, the other end of what is usually a 2-way street. We may have a REST API endpoint that accepts orders for an online food delivery service that takes in JSON formatted…
Going to skip right away to the juicy stuff as much as I can. I won’t discuss about what OpenShift is or what the Secrets feature does. This is only about my experience the first time I dealt with Secrets and how I used it for a Spring Boot Kafka consumer/client application. The problem I…