1819202122232425
ac = new ClassPathXmlApplicationContext("authApplicationContext.xml"); test(); } private static void test() { CredentialAuthenticator auth = ac.getBean(CredentialAuthenticator.class); auth.authenticate("user1", "senha1"); }