Spring Security 4 กับการทำ Basic Authen
แปะแหล่งความรู้เอาไว้ก่อนนะครับ
https://docs.jboss.org/resteasy/docs/1.0.0.GA/userguide/html/Securing_JAX-RS_and_RESTeasy.html
http://www.mkyong.com/spring-security/spring-security-http-basic-authentication-example/
https://dzone.com/articles/adding-http-basic-auth-restful
แหล่งรวม Lib ต่างๆ
http://central.maven.org/maven2/org/springframework/security/
อันนี้ Spring 4.0 เน้น
http://websystique.com/spring-security/spring-security-4-hello-world-annotation-xml-example/