Side masking of delimited text without configuring delimiter

In this post under DataMask, I will show with example how to do side masking of delimited text including masking of delimiter. So if the text is “1111-2222-3333-4444”, the output should be “***1-2222-333******”. The delimiter “.” is also masked, it is not excluded. Below is the complete main class Main class package core; import io.github.freewarelabs.datamask.core.DataFormatType;…… Continue reading Side masking of delimited text without configuring delimiter

Vetoing caching using SpEL

In this post under Spring Caching, I will show with example how to veto caching using SpEL. In previous posts I showed you how to use “@Cacheable” annotation. In that annotation itself there is an attribute that we can use to vetoing caching. That attribute name is “unless” and it takes as SpEL expression as…… Continue reading Vetoing caching using SpEL