code: public static String getResourcePath(String resource) {
  		String path = null;
  		ClassLoader[] loaders = getClassLoaders(null);
  		for (int i = 0; i < loaders.length; i++) {
  			if (loaders[i] != null) {
  				try {
  					path = loaders[i].getResource(resource).getPath();
  					if (StringUtils.isNotBlank(path)) {
  						return path;
  					}
  				} catch (NullPointerException e) {
  
  				}
  			}
  		}
  		return path;
  	}
docs: 获取资源路径（classes根路径）
  
  @param resource 资源
  @return 资源路径