Recent projects need to learn springMvc, the project which is mainly used to annotate the way . Today, write a log in the example used
@ ResponseBody annotation , when there is a problem . , prompt information : The annotation @ RequestBody is disallowed for ; this location.
just learning , looking for a long time, scratching their heads , seeking god pointing. Online ! ! ! Thank you .
------ Solution ---------------------------------------- ----
LZ, is this @ ResponseBody it, your image is requestBody, wrong , right
------ Solution ---------------- ----------------------------
public String loginForm (@ RequestBody) {
}
------ Solution ----------------------------------- ---------
remember. Two things .
没有评论:
发表评论