HI in my web development i'm finding a strange issue, i'm having an entire table as input field where users enter data and send back to Spring Rest, i'm getting the data as String and parsing it using Gson library
$http({
method: 'POST',
url: 'saveTableData.do',
headers: { 'Content-Type': 'application/json;'},
data:'tableVal'+data1
}) ;
and my Spring controller looks like
@RequestMapping(value="/saveTableData",method=RequestMethod.POST)
public void saveTableDataToDb(@RequestBody String tableData) {
Gson gson = new Gson();
TableData dataFromJson = gson.fromJson(tableData, TableData.class);
}
the issue is data is being sent to backend but in console i'm getting Failed to load resource: the server responded with a status of 404 (Not Found)
Why is this and will it impact in future
/SaveTableData