我正在使用SpringBoot1.5.3,SpringDataRest,SpringHateoas。春季数据休息是惊人的,做得很好,但是有时需要定制业务逻辑,因此我需要创建一个自定义控制器。我将使用@repositoryrestcontroller来受益于春季数据rest功能(http://docs.spring.io/spring-data/rest/docs/current/referent/reference/html/#customizing-sdr.overriding-sdr-responsehners).由于弹簧数据休息使用默认情况下使用Hateoas,所以我正在使用。我需要这样