升级SpringBoot到最新版本2.1.1

This commit is contained in:
RuoYi
2018-12-17 22:32:37 +08:00
parent ea58f8db9c
commit a74e58f7d5
34 changed files with 133 additions and 37 deletions

View File

@@ -37,6 +37,7 @@ import org.slf4j.LoggerFactory;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.base.AjaxResult;
import com.ruoyi.common.config.Global;
import com.ruoyi.common.exception.BusinessException;
/**
* Excel相关处理
@@ -376,7 +377,7 @@ public class ExcelUtil<T>
catch (Exception e)
{
log.error("导出Excel异常{}", e.getMessage());
return AjaxResult.error("导出Excel失败请联系网站管理员");
throw new BusinessException("导出Excel失败请联系网站管理员");
}
finally
{