@@ -0,0 +1,635 @@
+package com.haogrgr.test.util;%0A%0Aimport org.springframework.core.io.Resource;%0Aimport org.springframework.core.io.support.PathMatchingResourcePatternResolver;%0A%0A/**%0A * %E4%BD%BF%E7%94%A8Spring%E6%9D%A5%E5%8A%A0%E8%8E%B7%E5%8F%96%E8%B5%84%E6%BA%90%E6%96%87%E4%BB%B6%0A * %0A * %3Cp%3EAuthor: desheng.tu%3C/p%3E%0A * %3Cp%3EDate: 2014%E5%B9%B48%E6%9C%8812%E6%97%A5%3C/p%3E%0A */%0Apublic class SpringResourceUtils %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();%0A%0A        Resource%5B%5D resources = resolver.getResources(%22file://E:/mybatis/**/*.xml%22);%0A%0A        for (Resource resource : resources) %7B%0A            System.out.println(resource);%0A        %7D%0A    %7D%0A%0A%7D%0A

use spring resource to get resource file