Spring Security in Standalone Application
问题 How do I use Spring Security in a standalone application. I just need to use the Authentication portion of Spring Security. I need to authenticate users against Windows Active Directory. There are lots of examples in the web for using spring security in Servlets but couldn't find much for using them in standalone applications. I am only looking for something to complete this method boolean isValidCredentials(String username, String password) { //TODO use spring security for authentication