title: Spring REST security - Secure different URLs differently
body: <p>I have working REST API under Spring 4 using Basic authentication. These REST services are under /api/v1/** URL. However, I want to add another set of REST endpoints under different url /api/v2/**, but protected with token-based authentication.</p>
  
  <p>Is it possible to do this with one servlet ? How to configure Spring Security to use different forms of authentication for different URLs ?</p>
  
  <p>Thank you.</p>