spring jdbc template usage and beans with spring container