SSM测试类例子
package com.syh.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.syh.dao.Studentdao;
public class Test {
public static void main(String[] args) {
ApplicationContext con=new ClassPathXmlApplicationContext("applicationContext.xml");
Studentdao ssm=con.getBean(Studentdao.class);
System.out.println(ssm.selStu());
}
}