I suggest you to pay a read to this: Spring DI and CDI comparative study
Java EE CDI Producer methods tutorial
http://www.javacodegeeks.com/2013/04/java-ee-cdi-producer-methods-tutorial.html
http://stackoverflow.com/questions/25876402/which-is-the-spring-equivalent-for-the-cdi-produces-annotation
spring-security :http://docs.spring.io/spring-security/site/docs/3.2.x/reference/htmlsingle/#csrf