RSSAmplifier

Blog

CraftingJava Blog

CraftingJava Blog

craftingjava.comRSS feed ↗26 posts

Latest posts

How to post JSON-serialized form data with RestTemplate

RestTemplate is often used for consuming RESTful web services from Spring applications.

How to assign custom document IDs in Spring Data MongoDB

When using Spring Data MongoDB IDs can be automatically generated for documents provided that you’re using an ObjectId, String or BigInteger as the underlying type.

User management microservice (Part 1): Defining domain model and REST API

In this first part we define the requirements against the application, its initial domain model and that REST API which its front-end will be using.

Spring Boot 2.0 New Features: The 3 Most Important Changes You Must Know

As a Java Developer, you know that a lot had happened last fall Java 9 got released, Spring 5 went GA, Spring Boot saw another four milestone releases.

Installing OpenJDK 11 on Ubuntu 18.04 for real

OpenJDK 11 was released on the 25th of September, 2018.

How to setup a Jupyter notebook for exploring data

Walkthrough on setting up a new Jupyter environment for data analyses with NumPy, pandas, matplotlib, and their counterparts.

How to avoid slowdown when using Groovy-based @Transactional components

During the investigation of a slowdown in a back-end Spring application, I found an interesting side-effect of using class-level @Transactional annotations on Groovy-based services.

User management microservice (Part 7): Putting it together

During writing the last six parts of this article series a lot has happened.

User management microservice (Part 2): Implementing the domain model

In my previous post I defined the requirements of a user management microservice and designed the initial domain model of it.

User management microservice (Part 4): Implementing REST API

In the previous part the data access layer along with the repositories were implemented, before that the domain model without having to rely on any framework specific class or feature and now time has come to add REST controllers on the top of that.

User management microservice (Part 3): Implementing and testing repositories

In the previous part there was fair amount coding involved over the course of implementing the domain model, which comprises all the logic a user registration process needs.

This is how you can setup a Maven project for Java 9

One of the most anticipated events of the Java world is going to be when version 9 gets released on the 21st of September*.

Introduction to HTTP/2 support in Java 9

The IETF streaming group approved the HTTP/2 protocol in 2015, sixteen years after HTTP/1.1 had been released.

How to prevent OutOfMemoryError when you use @Async

Do you use @Async? You’d better watch out, because you might run into OutOfMemoryError unable to create new native thread error just as I did.

Spring Boot 2.0 New Features: Infrastructure Changes

In my previous post, Spring Boot 2.0 New Features The 3 Most Important Changes You Must Know About, I pointed out the one of the notable changes coming with Spring Boot 2 will be infrastructure updates.

GDPR forget-me app (Part 1): Requirements

In preparation for the enforcement of GDPR which becomes final on the 25th of May 2018, I’m creating a simple, open source forget-me app for craftingjava.com in compliance with Art. 17 GDPR (‘right to be forgotten’).

Bootiful GCP: Spring Cloud Stream with Google Cloud Pub/Sub

I’ve recently read Josh Long‘s Bootiful GCP series on Sprint Central’s engineering blog and especially liked the 4th part about using Google Cloud’s Pub/Sub.

GDPR forget-me app (Part 3): Conditional configuration with Spring Boot 2

In the previous part I explained one of the messages flows in detail from the point of view of implementing in- and outbound messaging with Spring Integration’s AMQP support.

Consuming Twitter Streaming API with Spring Integration

Spring Integration has been known to have a myriad of connectors for interacting with external systems.

Using Java Flight Recorder with OpenJDK 11

Java Flight Recorder (JFR) used to be a commercial add-on of the Oracle JDK.

Specialization Review: Mathematics for Machine Learning

The Mathematics for Machine Learning specialization taught by three processors from Imperial College of London is worth taking, you’ll get to know to the basics of math required to get started with Machine Learning.

JVM Observability and Tuning Best Practices

Collection of JVM settings I generally use in production. The article focuses on observability and G1 GC tuning.

User management microservice (Part 5): Authentication with JWT tokens and Spring Security

So far the business logic, data access layer and the front controllers had been build, however enforcing authentication was completely missing.

How to consume large SQS messages with JMS and Spring Boot

Spring Boot became ubiquitous in recent years and provided an opinionated way of integrating various pieces of technology.

User management microservice (Part 6): Remember me authentication with persistent JWT tokens

Last time I added username and password based authentication with using Spring Security.

GDPR forget-me app (Part 2): Messaging with Spring Integration and AMQP

This second part focuses on how to use Java DSL for defining in- and outbound messaging with Spring Integration’s AMQP support.