removed xml config; Added @ComponentScan in EndpointConfig