使用javaconfig方式配置spring工程的单元测试 添加@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = {MoveModelSpringTestConfig.class})