ITeye博客

Spring获取资源文件

androider · 2012-03-30 14:23 · 编程语言 · Markdown

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

        Properties pros = new Properties();

        try {

            pros.load(cr.getInputStream());

        } catch (IOException ex) {

        }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。