日期:2014-05-16  浏览次数:20456 次

Spring mvc 返回json格式

?

一、使用maven管理jar。

?

[html] view plaincopyprint?
  1. <dependency>??
  2. ??? <groupId>org.codehaus.jackson</groupId>??
  3. ????<artifactId>jackson-core-lgpl</artifactId>??
  4. ????<version>1.9.6</version>??
  5. </dependency>??
  6. <dependency>??
  7. ??? <groupId>org.codehaus.jackson</groupId>??
  8. ????<artifactId>jackson-core-asl</artifactId>??
  9. ????<version>1.9.4</version>??
  10. </dependency>??
  11. <dependency>??
  12. ??? <groupId>org.codehaus.jackson</groupId>??
  13. ????<artifactId>jackson-mapper-asl</artifactId>??
  14. ????<version>1.9.9</version>??
  15. </dependency>??
  16. <dependency>??
  17. ????<groupId>org.codehaus.jackson</groupId>??