I'm not sure my title is the good explain of my problem so i will try to explain here.
I have a springBoot application on my server, and using angular for front.
I send a request to my server :
@PostMapping(value="/setup/rate/electricityToImport")
public void updateNewElectricityRate( HttpServletRequest request) throws IOException, SAXException, ParseException {
String rate = request.getParameter("electricityToImport");
system.out.println(rate);
//here i will save rate in file.
}
var rate = this.myGridImport.getselectedcell()['value'];
console.log(rate)
$.ajax({
url: "/api/setup/rate/electricityToImport",
type: 'POST',
dataType: "text",
data: 'electricityToImport=' + rate
})
Now i want to know if the file is saved and display "File Saved" on the front (angular application) but how can i send to my front that save is finished well
Thanks a lot for your help! Math