I am using Thymeleaf forms and traditional Spring rest controllers to make API requests to an external platform.
The Thymeleaf form is a simple login form with 2 fields and a submit button. After the user presses submit, the data from the 2 fields needs to be sent as request parameters to a GET mapping method inside the controller.
What's the easiest way to achieve this?
Thanks
To send data from a Thymeleaf form to a Spring REST controller as request parameters and POST mapping, you can follow these example:
and for Controller
and you can post data with