Full masking of delimited text without configuring delimiter

In this post under DataMask, I will show with example how to do full masking of a simple delimited text including masking of delimiter. So if the text is “1111-2222-3333-4444”, the output should be “*******************” As you can see from the output the numbers and delimiter “-” are also masked. Below is the complete main…… Continue reading Full masking of delimited text without configuring delimiter

Creating custom cache key from method name using SpEL

In this post under Spring Caching, I will show with example how to create custom cache key from method name using SpEL. In SpEL, to access SpEL context object we will use “#root” variable. This SpEL context object will have below information reference to target method that is annotated with @Cacheable, @CachePut, or @CacheEvict reference…… Continue reading Creating custom cache key from method name using SpEL

Creating custom cache key from method arguments using SpEL

In this post under Spring Caching, I will show with example how to create custom cache key from method arguments in SpEL. In SpEL, to access SpEL context object we will use “#root” variable. This SpEL context object will have below information reference to target method that is annotated with @Cacheable, @CachePut, or @CacheEvict reference…… Continue reading Creating custom cache key from method arguments using SpEL

Full masking of delimited text with configured delimiter

In this post under DataMask, I will show with example how to do full masking a simple delimited text excluding masking of delimiter. So if the text is “1111-2222-3333-4444”, the output should be “—” As you can see from the output the numbers are masked but delimiter “-” is not masked. Below is the complete…… Continue reading Full masking of delimited text with configured delimiter

Default cache key in Spring Caching

In this post under Spring Caching, I will explain with example what default cache key are used when storing data in the cache and you don’t specify your own cache key. Spring Caching out of the box determines the cache key using the method parameters. If a method has no parameters, the key will be…… Continue reading Default cache key in Spring Caching