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

top.jfunc.common.propenv.ClasspathEnvStream Maven / Gradle / Ivy

There is a newer version: 1.8.5
Show newest version
package top.jfunc.common.propenv;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.InputStream;

/**
 * 从类路径下找
 * @author 熊诗言
 */
public class ClasspathEnvStream extends BaseEnvStream {
    private static final Logger logger = LoggerFactory.getLogger(ClasspathEnvStream.class);
    @Override
    protected InputStream loadInputStream(String fileName) {
        return Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy