我已经使用Spring Data Rest创建了简单的Spring引导应用程序。它与存储库一起工作得很好。但是,我需要添加一些额外的功能,为此,我希望使用@RepositoryRestController注释的控制器类。问题是,当我使用@RestController注解时,GET方法可供调用,但当我将注解切换到@RepositoryRestController时,浏览器显示该方法不可用。dependency>
<groupId>org.springframework.boot<
我试图了解Spring数据Rest控制器的确切行为。page, No errors, No print on consolehttp://localhost:8080/myApp/api/authors/mycontroller/testslash] in DispatcherServlet with name 'rest'
如果我使用@RestController,
当我在Spring Data REST应用程序中使用Lombok定义复杂类型时:@AllArgsConstructor@Table控制器,如:public class BookRepositoryRestController {
no String-argument constructor/factory method to dese
我使用的是Spring boot 1.5.3、Spring Data REST、Spring HATEOAS。Spring Data REST非常棒,做得很好,但有时需要自定义业务逻辑,因此我需要创建一个自定义控制器。我将使用@RepositoryRestController来受益于Spring Data REST功能()。@RepositoryRestController
@Reque