[spring mvc] The API in the background, in the test, always prompts that a field of the interface entity cannot be null, but it also prompts that it cannot be null even if the value is given.

Entity is these three fields

 

Interface implementation class Controller

 

front-end test

 

still error

 

 

 

Solution:

Need to add @RequestBody annotation

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325222633&siteId=291194637