接口方式修改

This commit is contained in:
huguanghan 2024-12-26 10:08:08 +08:00
parent 72573c30c0
commit 71a6ee5f1a

View File

@ -209,7 +209,7 @@ public class EquipmentController {
return R.success(fileList); return R.success(fileList);
} }
@RequestMapping(value = "/file/read", method = RequestMethod.POST) @RequestMapping(value = "/file/read", method = RequestMethod.GET)
public void readFile(String path, HttpServletResponse response) throws IOException { public void readFile(String path, HttpServletResponse response) throws IOException {
if (StringUtils.isBlank(path)){ if (StringUtils.isBlank(path)){
throw new ServiceException("请输入浏览的文件路径"); throw new ServiceException("请输入浏览的文件路径");