The annotation @ResponseBody is disallowed for this location
来源:互联网 发布:学术数据库有哪些 编辑:程序博客网 时间:2024/05/16 03:42
The annotation @ResponseBody is disallowed for this location
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px '.PingFang SC'; color: #454545}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545; min-height: 14.0px}span.s1 {font: 12.0px 'Helvetica Neue'}span.s2 {font: 12.0px '.PingFang SC'}span.s3 {text-decoration: underline}span.s4 {font: 12.0px '.PingFang SC'; text-decoration: underline}span.Apple-tab-span {white-space:pre}
/**
* 保存或更新情景
**/
@RequestMapping("/save.do")
@ResponseBody
public void save(@ResponseBody Scene scene, HttpServletRequest request, HttpServletResponse response) throws Exception {
Personal personal = SecurityUtils.getPersonal(request);
Long personalId = personal.getId();
if (personalId == null) {
outFailureJson(response, BaseCodeMessage.personal_10001);
return;
}
错误原因是把 @ResponseBody 写错位置了。
本来是想写 @RequestBody 的,结果写成了 @ResponseBody
- The annotation @ResponseBody is disallowed for this location
- The annotation @Query is disallowed for this location
- This bundle is invalid. The bundle identifier contains disallowed characters.
- XCode ERROR ITMS-90049 This bundle is invalid The bundle identifier contains disallowed characters
- App项目升级Xcode7&iOS9(续) - This bundle is invalid. The bundle identifier contains disallowed characters
- ERROR ITMS-90049:"This bundle is invalid.The bundle identifier contains disallowed characters."
- 打包上传报错!!ERROR ITMS-90049:"This bundle is invalid. The bundle identifier contains disallowed characte
- The attribute required is undefined for the annotation type XmlElementRef
- The attribute locations is undefined for the annotation type ContextConfiguration
- there is no source code available for the current location
- There is No Source Code Available for the Current Location
- There is no source code available for the current location
- There is no source code available for the current location.
- @ResponseBody 406:The resource identified by this request is only capable of generating respon......
- 解决c/c++编译时 note: this is the location of the previous definition
- the breakpoint will not currently be hit. No executale code is currently loaded at this location
- 错误处理:The viewstate is invalid for this page
- this device is not eligible for the requested build
- ARM 按键控制LED灯+IO控制buzzer蜂鸣器
- Ubuntu16.04下安装sublime text3
- 算法优化的神奇效果
- 设计模式:对象去耦(中介者,观察者)
- 如何在Kubernetes中暴露服务访问
- The annotation @ResponseBody is disallowed for this location
- 百度脑图-便捷的思维工具
- 9——提取不重复的整数
- 河南第十届ACM省赛-I-Transmit information
- python如何将字符串作为变量
- Access restriction: The method 'CharacterEncoder.encode(byte[])' is not API (restriction on required
- 关于利用itchat模块编写的微信自动回复
- CKEditor与CKFinder学习--浅谈CKFinder源码修改自定义上传文件名
- 删除service中的服务名称( SC OpenService 失败5:拒绝访问)