
Spring - Lookup Method or Method Injection
Labels:
Dependency Injection,
IOC,
Lookup Method,
Method Injection,
Spring
How to Create Custom Namespaces and Handlers in Spring

Spring itself provides several namespaces out of the box. e.g.
Labels:
NameSpaceHandler,
Spring
Localization with Spring

Before jumping into what Spring has to offer, let's explore what we get from Java itself.
Spring Boot - How to Create a Deployable War

Spring starters are poms (if using maven) that
Labels:
Spring,
Spring Boot,
Spring Initializr
Spring Cache - Part 5 - CacheEvict

@Cacheable
and @CachePut
. But, what about removing data from cache? Consider a call to delete the record from Service or DB, in which case, we would also want to delete that record from the cache.
Labels:
CacheEvict,
Spring,
Spring-Cache
Deep Copy Java Objects through Serialization
When it comes to deep copy or cloning an object, the first thing that comes to mind is to override the
clone()
method and set each field manually. This can be pretty cumbersome to implement for complex objects or if you have to do this for a lot of them.Spring Cache - Part 4 - CachePut

There are scenarios, unlike retrievals, where you do not want to skip the execution of the method e.g. insert/update of a record. Such methods should not be marked as Cacheable. But, you might still want to cache the result of these methods, in order to avoid unnecessary retrievals in future calls.
Labels:
CachePut,
Spring,
Spring-Cache
Subscribe to:
Posts (Atom)