|
@@ -116,7 +116,8 @@ public class BaseProfessionalController extends BaseController {
|
|
|
public void downloadZip(HttpServletRequest request, HttpServletResponse response) {
|
|
|
try {
|
|
|
// 文件路径
|
|
|
- String downloadPath = Class.class.getClass().getResource("/").getPath() + "template/专业库模板.xlsx";
|
|
|
+ String downloadPath = this.getClass().getResource("/").getPath() + "template/专业库模板.xlsx";
|
|
|
+ log.info("downloadPath:{}",downloadPath);
|
|
|
// 下载文件
|
|
|
String realFileName = "专业库模板.xlsx";
|
|
|
String filePath = downloadPath;
|