Here is the simplest way to submit a form data via jQuery Ajax to backend.
HTML Code

Javascript code:
Backend Code- Spring Controller.

Hope this helps some troubled souls like mine.
Let me know if anyone has better code. I will be glad to take any suggestions.

