【发布时间】:2018-10-22 15:04:08
【问题描述】:
我正在尝试在我的项目中实现 Ajax Long Polling 我的项目的这个结构 str 在 json 文件中我有这个代码
{"user": "user","two": "two","three": "three"}
当我尝试运行我的项目时,我得到了他的想法控制台:
WARN 8032 --- [nio-8080-exec-3].w.s.m.s.DefaultHandlerExceptionResolver:Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "status"
这在 chrome 控制台中: log
如果有任何帮助,我将不胜感激
【问题讨论】:
标签: json ajax spring long-polling