using spring for dependency injection in the http server