Spring 3.0 making JSON response using jackson message converter

后端 未结 8 1984
迷失自我
迷失自我 2020-12-01 05:20

i configure my messageconverter as Jackson\'s then

class Foo{int x; int y}

and in controller

@ResponseBody
public Foo metho         


        
8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-01 06:15

    A HTTP 404 error just means that the resource cannot be found. That can have 2 causes:

    1. Request URL is wrong (client side error or wrong URL in given link/button).
    2. Resource is not there where you expect it is (server side error).

    To fix 1, ensure you're using or providing the correct request URL (casesensitive!). To fix 2, check the server startup logs for any startup errors and fix them accordingly.

    This all goes beyond the as far posted code and information.

提交回复
热议问题