Common use method of Spring framework