All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.leopard.test.ApplicationContextLocationFirstImpl Maven / Gradle / Ivy

package io.leopard.test;

import org.springframework.core.io.ClassPathResource;

public class ApplicationContextLocationFirstImpl implements ApplicationContextLocation {

	/** 第一个入口 */
	private static final String ENTRY_FIRST = "/integrationTest.xml";

	@Override
	public String[] get() {
		ClassPathResource resource = new ClassPathResource(ENTRY_FIRST);
		// System.err.println("resource.exists():" + resource.exists() + " ENTRY_FIRST:" + ENTRY_FIRST);
		if (resource.exists()) {
			return new String[] { ENTRY_FIRST };
		}
		return null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy