spring

Spring JDBCTemplate example

Posted on Updated on

Spring JDBC provides api support for implementing JDBC code using Spring framework. CRUD operation using Spring JDBC has been explained with example in the blog Spring JDBC. There are certain benefits of using Spring JDBC; however, there are some drawbacks as listed below: Read the rest of this entry »

Spring jdbc example

Posted on Updated on

Spring Framework is most famous java framework to build enterprise applications and database is integral part of enterprise applications. Spring framework provides excellent support for jdbc and other popular frameworks like hibernate, iBatis and many more. Here in this tutorial we will demonstrate example of CRUD operation using spring jdbc. Read the rest of this entry »

Spring Core- Defining Bean Properties by Shortcut

Posted on Updated on

Spring supports a shortcut for specifying the value of a simple type property.

In case of creating beans using setter method, we use below Spring configuration.

Read the rest of this entry »

Spring Core- Dependency Injection using setter method

Posted on Updated on

In Java programming language, it is common that one class contains reference of other class. This is said to be “HAS A relationship” in OOP.

Spring framework provides facility to inject one bean to another bean to achieve “HAS  A” relationship.

The below example demonstrate dependency injection using setter method. Read the rest of this entry »