Saturday, March 19, 2011

Defining scope by annotation in spring

Scope has been discussed here.
We use @Scope annotation for this.
@Repository
@Scope("singleton")
public class FlightRepositoryImpl implements FlightRepository {

No comments:

Post a Comment

Chitika