Skip to content

Commit

Permalink
refactor($Starter): remove useless parameter
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
johnnymillergh committed Feb 19, 2021
1 parent b42bc7b commit 864bda7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -280,12 +279,11 @@ private void destroyLocaleContext() {
* Upload excel file. Any exceptions happened in any lifecycle will not interrupt the whole process.
*
* @param request the request
* @param response the response
* @return the response body bean
*/
@PostMapping(value = "/upload", headers = "content-type=multipart/form-data")
@ApiOperation(value = "Upload Excel file", notes = "Upload Excel file")
public ResponseBodyBean<ExcelImportResult> upload(HttpServletRequest request, HttpServletResponse response) {
public ResponseBodyBean<ExcelImportResult> upload(HttpServletRequest request) {
beforeExecute();
initLocaleContext();
try {
Expand Down

0 comments on commit 864bda7

Please sign in to comment.