Enable HAL serialization in Spring Boot for custom controller method
问题 I\'m trying to build a RESTful API with Spring Boot using spring-boot-starter-data-rest. There are some entities: accounts, transactions, categories and users - just the usual stuff. When I retrieve the objects at http://localhost:8080/transactions via the API that has been generated by default, all is going well an I get a list with all transactions as JSON objects like that one: { \"amount\": -4.81, \"date\": \"2014-06-17T21:18:00.000+0000\", \"description\": \"Pizza\", \"_links\": { \"self