I am using Spring Security v4.1. After a lot of reading and testing, I disable the CSRF security feature for specific URLs using XML configuration.
//...
With the above configuration, I enable the CSRF security only for POST|PUT|DELETE requests of all URLs which start with /rest/
.