Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sction.support.spring;
 
 import java.io.File;
 
 
 public class SpringStartup {

Parameters:
classpath base:"projectpath" 为基础(运行)目录+projectpath
xmls
	public static ApplicationContext springStartup(String classpath,
			String... xmls) {
		System.setProperty("projectpath"new File("").getAbsolutePath());
		..println("基础目录:" + System.getProperty("projectpath"));
		if (classpath != null && !"".equals(classpath.trim())) {
			if (classpath.trim().startsWith("projectpath:")) {
				System.setProperty(
						"classpath",
						System.getProperty("projectpath")
classpath.substring(12));
else {
				System.setProperty("classpath"classpath);
			}
		}
		..println("类目录:" + System.getProperty("classpath"));
	}
	public static ApplicationContext springStartup(String... xmls) {
	}
New to GrepCode? Check out our FAQ X