@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = "classpath:whereever/context.xml")public class TestWarSpringContext { static { System.setProperty("myproperty", "foo"); }}
静态初始化程序代码将在spring应用程序上下文初始化之前执行。
欢迎分享,转载请注明来源:内存溢出
@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations = "classpath:whereever/context.xml")public class TestWarSpringContext { static { System.setProperty("myproperty", "foo"); }}
静态初始化程序代码将在spring应用程序上下文初始化之前执行。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)