29.1.15


These are very good comments from mkyong:

When Spring sees
  1. Jackson library is existed in the project classpath
  2. The mvc:annotation-driven is enabled
  3. Return method annotated with @ResponseBody
Spring will handle the JSON conversion automatically.
If we see something like this:

HTTP ERROR 406

Problem accessing /kfc/kfc-kampar. Reason:
    Not Acceptable


Powered by Jetty://
We probably forgot the Jackson library. Or the POJO doesn't have a getter-methods.


No comments: