-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
method.return 这个配置项不起作用 #1045
Comments
怎么用的呢? |
用的地方是这样的吗? |
我试了一下: /**
* 更新用户名
*
* @param id 当前用户id
* @param newName 新的用户名
* @param slogon 个人签名
* @real_return com.itangcent.common.model.UserInfo
* @deprecated 改用{@link #update(UserInfo)}
*/
@RequestMapping(value = "/set", method = RequestMethod.PUT)
public Result<UserInfo> set(@CookieValue(value = "currentId", required = false, defaultValue = "123") long id,
String newName,
@RequestParam String slogon,
@RequestParam(required = false, defaultValue = "10") long times) {
UserInfo userInfo = new UserInfo();
userInfo.setId(id);
userInfo.setName(newName);
userInfo.setAge(45);
return Result.success(userInfo);
} 响应:
Headers:
Body:
Response Demo: {
"id": 0,
"type": 0,
"name": "",
"age": 0,
"sex": 0,
"birthDay": "",
"regtime": ""
} |
我用的是最新的社区版idea会和这个有关系么? |
概率很小 用的地方是这样的吗? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
method.return=#real_return
版本[2.6.3.212.0]
The text was updated successfully, but these errors were encountered: