Spring Dependency Injection With Examples

This post shows what is dependency injection in Spring framework along with examples of injecting dependencies using XML configuration as well as using annotations. Table of contents What is dependency injection Dependency injection in Spring Spring dependency injection example with XML configuration Spring dependency injection example with annotations What is…

Continue reading

Spring Expression Language (SpEL) Tutorial

The Spring Expression Language (“SpEL”) is an expression language that supports querying and manipulating an object graph at runtime. In this post we’ll see examples of using SpEL with both XML and annotation based configuration. The expression language supports the following functionality: Literal expressions Boolean, relational and mathematical operators Regular…

Continue reading