1
我想用JSP和jQuery Spring MVC。在我正在處理的示例中,給出的是,春天mvc傑克遜json
// @ResponseBody will automatically convert the returned value into JSON format
// You must have Jackson in your classpath
如何將Jackson添加到類路徑中?它有什麼用途?
我已將spring-json-1.3.1.jar添加到構建路徑。我應該包括哪些其他的jar文件?是否還有其他更改要做? – elle 2011-04-26 11:37:39
我也添加了jackson-mapper-asl.jar – elle 2011-04-26 11:45:07
jackson-all-1.6.2.jar是我目前使用的一種,可以很好地處理Json請求 – 2011-04-26 12:10:05