Configured the service layer with spring