package oshop.test;import org.junit.runner.RunWith;import org.springframework.test.context.ContextConfiguration;import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;import org.springframework.test.context.transaction.TransactionConfiguration;@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:applicationContext.xml" })@TransactionConfiguration(transactionManager = "transactionManager")public class BaseJunit4Test { }
测试的是一个 WEB 项目,怎么加载 WEB-INF 下面的 applicationContext.xml
试过很多都不行。
慕哥9229398
牧羊人nacy