Blog Archives

CDI annotations @Named and @Inject Dependency Injection in Spring 3.0 Tutorial

In Spring 3.0 the support for the CDI annotations @Named and @Inject are provided.

1) @Inject instead of Spring’s @Autowired to …

Read more ›



Spring 3.0 tutorial – Part 1 (Setter DI )

This is a very simple Spring setter DI (depenendency injection tutorial). This assumes that you have gone through the “Setting up …

Read more ›



Spring 3.0 tutorial – Part 2 (Constructor DI )

This is a very simple Spring constructor DI (depenendency injection tutorial). This assumes that you have gone through the “Setting up … … Read more ›...



Spring 3.0 tutorial – part 3 (Setter DI with annotations)

This is a very simple Spring setter DI (dependency injection tutorial) using annotations. This assumes that you have gone through …

Read more ›



Spring 3.0 tutorial – part 4 (Setter DI with annotations and Java Config instead of XML)

This is a very simple Spring setter DI (dependency injection tutorial) using annotations. This is using a Java based Spring … … Read more ›...



Spring 3.0 tutorial – part 5 (Setter DI with Spring AOP and AspectJ)

This is a very simple Spring AOP tutorial using AspectJ. This assumes that you have gone through the “Setting up …

Read more ›



Spring 3.0 tutorial – part 6 (with Hibernate & HSQLDB)

This is a very simple Spring tutorial with Hibernate and HSQLDB. This assumes that you have gone through the tutorials

1) …

Read more ›



Spring 3.0 tutorial – part 7 (with JPA, Hibernate & HSQLDB)

This is a very simple Spring tutorial with JPA, Hibernate and HSQLDB. This assumes that you have gone through the … … Read more ›...



Spring lookup-method example to inject prototype scoped bean into a singleton scoped bean

Step 1: You need asm and cgilib libraries in addition to Spring libraries shown below.

spring-lokkup-needs-asm-cgilibspring-lokkup-needs-asm-cgilibspring-lokkup-needs-asm-cgilib

Step 2: define the Dao (Data …

Read more ›



Top 6 Spring wiring via JavaConfig [i.e. @Configuration ] examples

Spring Java Configuration (i.e. JavaConfig) provides a pure-Java means of configuring the Spring IoC container. This is gaining popularity as it …

Read more ›



Java & Big Data Categories

Top