Spring JdbcDaoSupport

Concept Overview Spring provides convenient classes to perform functions on the database. It handles creating a connection to a database, performing clean up and handling exceptions. The user creates a datasource and injects it into a jdbctemplate. The jdbctemplate is then injected into the spring Dao. The user can also inject a datasource directly into … Read more

Spring Jdbc Template Named Params

Concept Overview The power of spring lies in its ability to converse freely with various other parts of the application. Spring provides classes and methods to perform functions on the database. It provides template classes that perform common database functions such as opening a connection, closing connection and managing exceptions. The only thing the user … Read more

Spring Jdbc Template

Concept Overview In the previous tutorials we have covered the basic concepts of spring as a framework. We now start looking at how spring integrates with the other parts of the application. The main power of spring lies in its ability to talk to various other parts of the application, whatever technology they may be … Read more

Spring AOP – Annotations

Concept Overview An application may have certain features that are applicable across multiple modules. These include logging, security, transaction management, caching etc. and are commonly referred to as cross-cutting concerns. Spring provides a method to separate these cross cutting concerns as aspects and use them declaratively wherever required. There are chiefly two ways to declare … Read more

Spring AOP – Concepts and XML Configuration

Concept Overview There are certain activities like logging, security, caching, transaction management etc. that are applicable to multiple objects in a software system. Such activities are called cross-cutting concerns . Typically, although these cross-cutting concerns are conceptually separate from the application�s business logic, the code that handle the cross-cutting concerns is often intermixed with that … Read more

Spring Java Configuration

Pre-requisite trails Spring Auto-Wiring Using Annotations Spring Auto-Discovery of Beans Concept Overview Typically in Spring, dependency injection is achieved using bean , constructor-arg and property tags. However, in large applications, the number of beans will increase and the corresponding XML written to configure the numerous beans will become very large and unwieldly. Spring has 3 … Read more

Spring Automatically Discovering Beans Using @Component Annotations

Pre-requisite trails Spring Auto-Wiring Using Annotations Concept Overview Typically in Spring, dependency injection is achieved using bean , constructor-arg and property tags. However, in large applications, the number of beans will increase and the corresponding XML written to configure the numerous beans will become very large and unwieldly. Spring provides a feature called ‘Auto-Wiring’ that … Read more

Spring Auto-Wiring Using JSR 330 Annotations: Wiring String using @Value

Pre-requisite trails Spring Auto-Wire Using JSR 330 Annotations Concept Overview Typically in Spring, dependency injection is achieved using bean , constructor-arg and property tags. However, in large applications, the number of beans will increase and the corresponding XML written to configure the numerous beans will become very large and unwieldly. Spring provides a feature called … Read more

Spring Auto-Wiring Using @Named JSR 330 Annotations

Pre-requisite trails Spring Auto-Wire Using JSR 330 Annotations Concept Overview Typically in Spring, dependency injection is achieved using bean , constructor-arg and property tags. However, in large applications, the number of beans will increase and the corresponding XML written to configure the numerous beans will become very large and unwieldly. Spring provides a feature called … Read more

Spring Auto-Wiring Using JSR 330 Annotations

Pre-requisite trails Spring Auto-Wire Using Annotations Concept Overview Typically in Spring, dependency injection is achieved using bean , constructor-arg and property tags. However, in large applications, the number of beans will increase and the corresponding XML written to configure the numerous beans will become very large and unwieldly. Spring provides a feature called ‘Auto-Wiring’ that … Read more