@Before
public void setUp() {
applicationContext = new XmlWebApplicationContext();
applicationContext.setConfigLocations(
"classpath:/cas-management-servlet.xml",
"classpath:/managementConfigContext.xml",
"classpath:/spring-configuration/*.xml");
applicationContext.setServletContext(new MockServletContext(new ResourceLoader() {
@Override
public Resource getResource(final String location) {
return new FileSystemResource("src/main/webapp" + location);
}
@Override
public ClassLoader getClassLoader() {
return WiringTests.class.getClassLoader();
}
}));
applicationContext.refresh();
}
WiringTests.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:cas-server-4.2.1
作者:
评论列表
文章目录