The type org.springframework.context.ApplicationContextInitializer cannot be resolved. It is indirectly referenced from required .class files

Multiple markers at this line
- The type org.springframework.context.ApplicationContextInitializer cannot be resolved. It is indirectly referenced from required .class files
- The type org.springframework.context.ApplicationContextInitializer cannot be resolved. It is indirectly referenced from required .class files
srccode

package cn.itcast.test;
import java.util.List;

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import cn.itcast.pojo.Student;

@RunWith(value = SpringJUnit4ClassRunner.class)
@ContextConfiguration(value = "applicationContext.xml")
public class StudentMapperTest {
@Autowired
private StudentMapper studentMapper;

@Transactional
public void getStudentTest() {

}
} 添加spring-context-3.2.2.RELEASE.jar

Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有