it is better to use rest-servlet.xml for integrating Spring.