changed the configuration from xml to annotation