解决方案 »
- JSP里面内嵌JAVA代码
- 超链接在FF opera浏览器无效怎么解决?
- Document root element "struts-config", must match DOCTYPE root "null"
- struts1 + struts2 集成的项目,无法做文件上传?
- 用MyEclipse 写JSP时,<font><p></p></font>警告
- SESSION搞混了,怎么办?
- 读数据库中的图片,为什么有时候显示不出来呢
- 正则表达式
- sql 查询的问题
- struts---actionform
- JSP/servlet页面之间的字符乱码问题
- Spring4与Hibernate4整合时出现的问题
2015-01-07 11:26:29,572 [qtp1683698824-28] DEBUG [org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver] - Resolving exception from handler [public void org.xu.web.BookController.updateBook(java.util.List<org.xu.domain.Book>)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.eclipse.jetty.server.HttpInput@92fba00; line: 1, column: 1]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.eclipse.jetty.server.HttpInput@92fba00; line: 1, column: 1]
2015-01-07 11:26:29,572 [qtp1683698824-28] DEBUG [org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver] - Resolving exception from handler [public void org.xu.web.BookController.updateBook(java.util.List<org.xu.domain.Book>)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.eclipse.jetty.server.HttpInput@92fba00; line: 1, column: 1]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.eclipse.jetty.server.HttpInput@92fba00; line: 1, column: 1]
2015-01-07 11:26:29,572 [qtp1683698824-28] DEBUG [org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver] - Resolving exception from handler [public void org.xu.web.BookController.updateBook(java.util.List<org.xu.domain.Book>)]: org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.eclipse.jetty.server.HttpInput@92fba00; line: 1, column: 1]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.eclipse.jetty.server.HttpInput@92fba00; line: 1, column: 1]
②controller中改public void updateBook(@RequestBody List<Book> books) {}为public void updateBook(@RequestBody Book[] books) {}
③store中writer : {
//encode : true,
type: 'json',
allowSingle : 'true'
//root: 'data'
}, 改为writer : {
//encode : true,
type: 'json',
allowSingle : false
//root: 'data'
},