spring mvc and rest practice