Controllers in Spring MVC 3.x are singleton scoped. There’s only one instance of the Controller shared by all the requests. So it’s bad idea to have member variables in a Controller class. If you want to inject a bean that’s […]
Last week in Norcross, GA we were creating a RESTful application in Spring 3.2. We injected a service to the RESTful controller. The Service talked to the database using a DAO. One weird thing I noticed when the guys were […]