@RequestBody is an important key word in Spring Boot, which will define the data style in transaction.

Spring Boot - @RequestBody_java

Without @RequestBody, data will be passed as key-value. Data will be passed in JSON when use @RequestBody.

Spring Boot - @RequestBody_spring_02

When use @RequestBody several times at one time, the last one will take effect while the others don't.

Spring Boot - @RequestBody_spring_03

 Although it seems correct in swagger view. In the process of debugging, the second takes effect while the first one does not.

 

Spring Boot - @RequestBody_spring boot_04