MariaDB does not come with change streams/change data capture out of the box like mongo. There are some enterprise-y options like MaxScale, but all of these solutions are over engineering for a simple use case of following the binary log. My use case was for MariaDB crud to be reflected into an Elastic instance.
I found this library whilst googling around and it is phenomenal. A straightforward library to be able to listen to MariaDB events and perform actions on them. Only issue is that it was only deployed in jitpack. Nothing wrong with that per se, but infrastructure wise it is much more likely your organization has a mirror of maven central.
To that end, I forked this project and put in a couple bug fixes, but most importantly it is now released into maven central:
<dependency>
<groupId>dev.atchison</groupId>
<artifactId>mariadb-cdc</artifactId>
<version>1.0.4.2</version>
</dependency>
Release https://github.com/TheKnowles/mariadb-cdc/releases/tag/1.0.4.2