Spring中正则获取包下的类
1 2 3 4 5 6 7 8
| ResourcePatternResolver resourcePatternResolve=new PathMatchingResourcePatternResolver();
resourcePatternResolve.getResources("classpath*:gt/**/*.class");
resourcePatternResolve.getResources("classpath*:/**/*.class");
resourcePatternResolve.getResources("classpath:/**/*.class");
|
本文地址: https://github.com/maxzhao-it/blog/post/19701/