import org.junit.Test;
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 org.springframework.test.context.web.WebAppConfiguration;

@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
@ContextConfiguration(locations={"classpath*:spring-core.xml"})
public class Test{

@Autowired
private DataMapper dataMapper;

@Test
public void testFun(){

  List<User> list = dataMapper.getUser();
  
}

}

 

相关文章:

  • 2021-11-26
  • 2022-12-23
猜你喜欢
  • 2021-09-13
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-07-26
  • 2021-11-04
相关资源
相似解决方案