ssh+junit测试
其他随笔
public class test { @BeforeClass public static void bb(){//必须为静态 System.out.println("class"); } ApplicationContext ctx = new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/applicationContext.xml"); @Test public void findTest(){ userDAO a1do = (userDAO) ctx.getBean("userDAO"); user a1= a1do.Find(40); System.out.println(a1); } }