I can get the example project you provided to run after the following steps:
- Upgrade to a compatible Jackson version (2.3.0 or better). Use Spring HATEOAS 0.10.0.BUILD-SNAPSHOT.
- Run the app.
curl -v -H "Accept: application/hal+json" http://localhost:8080/api/subjects
Result:
* Adding handle: conn: 0x7fc072803a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fc072803a00) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8080 (#0)
* Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> GET /api/subjects HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8080
> Accept: application/hal+json
>
< HTTP/1.1 200 OK
< Content-Type: application/hal+json
< Transfer-Encoding: chunked
* Server Jetty(8.1.14.v20131031) is not blacklisted
< Server: Jetty(8.1.14.v20131031)
<
* Connection #0 to host localhost left intact
{"_links":{"self":{"href":"http://localhost:8080/api/subjects"}},"_embedded":{"subjectList":[{"name":"foo"}]}}