add spring config and service, and mocks