日期:2014-05-16 浏览次数:20862 次
import org.apache.commons.io.FilenameUtils; String extension = FilenameUtils.getExtension(fileName); if (extension.equals("zip") || extension.equals("bar")) { ZipInputStream zip = new ZipInputStream(fileInputStream); repositoryService.createDeployment().addZipInputStream(zip).deploy();