Category Archives: Spring

Anotation Basic Use 3

Annotation-based controller configuration Spring 2.5 introduces further stereotype annotations: @Component, @Service and @Controller. @Component serves as a generic stereotype for any Spring-managed component; whereas, @Repository, @Service, and @Controller serve as specializations of @Component for more specific use cases (e.g., in … Continue reading

Posted in Spring | 2 Comments

Spring Data Access Support

Consistent abstract classes for DAO support To make it easier to work with a variety of data access technologies such as JDBC, JDO and Hibernate in a consistent way, Spring provides a set of abstract DAO classes that one can … Continue reading

Posted in Spring | 1 Comment

Potential problem with Open Session in View

This article is to introduce the solution of an open connection problem for Open Session in View   Servlet 2.3 Filter that binds a Hibernate Session to the thread for the entire processing of the request. Intended for the "Open … Continue reading

Posted in Spring | Leave a comment

Anotation Basic Use 2

Annotation for Transaction The @Transactional annotation may be placed before an interface definition, a method on an interface, a class definition, or a public method on a class. However, please note that the mere presence of the @Transactional annotation is … Continue reading

Posted in Spring | Leave a comment

Using Customer PropertyEditor for Form Data Binding

  When working with Spring forms, we normally bind the form properties into a command class. However, there would be some troubles if your command class has some properties that are not String, as all values from the form are … Continue reading

Posted in Spring | Leave a comment

Spring Security (3) Implementation of Proxies

To create an  AOP proxy in Spring, you should use the ProxyFactoryBean. This gives complete control over the pointcuts and advice that will apply, and their ordering. However, there are simpler options that are preferable if you don’t need such … Continue reading

Posted in Spring | 1 Comment

Anotations basic use 1

The official summary of annotation is as follow: As of release JDK 5.0, the platform has a general purpose annotation (also known as metadata) facility that permits you to define and use your own annotation types.   Annotation type declarations … Continue reading

Posted in Spring | Leave a comment