@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration({ "/applicationContext.xml" }) public class JunitTest { //单元测试 }