Home > Back-end >  Front end through the POST value after the end
Front end through the POST value after the end

Time:09-16

1. The web client information:
The Request URL: http://localhost:8093/ImportManagementBase.jsp
The Request Method: POST
The Status Code: 200 OK
Remote Address: [: : 1) : 8093
The Referrer Policy: no - Referrer - the when - downgrade
Host: localhost: 8093
Origin: http://localhost:8093
The Referer: http://localhost:8093/ImportManagementBase.jsp
2. The front POST related statements
$.post ("/ImportManagementBase. JSP, $(" # customerImportForm "). The serialize (), function (data) {
If (data. The status==200) {
ShowMessage (' you submit application has been successful, the application result will SMS you... ', 'success', 2000);
} else {
ShowMessage (' the server is busy, please try again later... 'and' error ', 4000);
}
});
} else {
ShowMessage (' you have filling or fill out the content is wrong, please you to check after fill out and submit... 'and' error ', 2000);
};
3. The backend:
@ Controller
Public class ImportManagementBaseController {
//* 1. The customer information plate processing
@autowired//* by type automatically assigned into
Private ImportManagementBaseService ImportManagementBaseService;
@ RequestMapping (value="https://bbs.csdn.net/ImportManagementBase.jsp", method=RequestMethod. POST)
@ ResponseBody
Public RunyiResult inputprocessing (dataprocessingCustomerMaintableresult dataprocessingresult) {
//add the form data to give interface
System. The out. Print (" accept came to the front end data ");
RunyiResult result=importManagementBaseService. Inputprocessing (dataprocessingresult);
return result;//will return to the interface data
};
}
Case description: front transfer success, submitted to the following information:
The Request URL: http://localhost:8093/ImportManagementBase.jsp
The Request Method: POST
The Status Code: 200 OK
Remote Address: [: : 1) : 8093
The Referrer Policy: no - Referrer - the when - downgrade
Question: the back-end no response, please expert help diagnose what went wrong?
I doubt the @ RequestMapping (value="https://bbs.csdn.net/ImportManagementBase.jsp", method=RequestMethod. POST) the value of value, but try
Many times still have no reaction,

CodePudding user response:

DataprocessingCustomerMaintableresult how data obtained from the request body ah

CodePudding user response:

See if you form fields in the form carefully and dataprocessingresult fields in the corresponding
  • Related