Home > Back-end >  Excuse me each of the parameters of the controller to receive less than Ajax to send how to solve
Excuse me each of the parameters of the controller to receive less than Ajax to send how to solve

Time:12-04

This is my code






Upset for a day, to receive the value is null

CodePudding user response:

Have a look at your controller access paths, and where you access the controller

CodePudding user response:

Post submission of data type is json, the Controller method is useless @ RequestBody or @ RequestParam inside

CodePudding user response:

Is not the date data

CodePudding user response:

refer to the 4th floor stop human petard response:
the data is not the date

Problem has been solved, thank you

CodePudding user response:

Using the @ RequestParam annotation will own form in the front-end data parameter name mapping;
Add @ ResponseBody?
To see if the path corresponds to?

CodePudding user response:

You are written in the servlet backend controller, directly from the request to have variable names, json is equivalent to a group, you can try request. GetParameterValues () or request. GetParameterNames () can try to get the data
  • Related