Vue project submits a form form, the backend cannot receive parameters

Problem resolution:

        Reason: The value transfer method is request payload

        Solution:

              1: The backend uses @RequestBody annotation

              2: Serialize json on the front end (recommended)

                   The advantage of this is that it is more convenient for the back-end to receive parameters, and there is no need to add any annotations, and there is no need to deal with json.

                  import qs from 'qs'

                  

Guess you like

Origin blog.csdn.net/qq_20594019/article/details/113251252