Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在唱 Spring Data MongoDb。在控制器 @requestBody 用户用户中。
所以现在请求中没有数据。从请求正文中获取之后。
从 dao 层的请求对象中获取请求体数据后,春天有什么方法可以获取请求体数据。请帮帮我。提前谢谢/..
Spring 不会神奇地将它存储在任何地方,因此您必须自己在控制器层中读取它并将其作为常规参数传递或自己存储在某个地方。