Spring获取资源文件

ClassPathResource cr = new ClassPathResource("config/common-web.properties");//

        Properties pros = new Properties();

        try {

            pros.load(cr.getInputStream());

        } catch (IOException ex) {

        }

你可能感兴趣的:(spring)