jonashackt/spring-boot-vuejs

Innecessary @RequestBody annotations on @RestController-annotated controllers

guillevc opened this issue · 2 comments

We don't need to annotate the @RestController-annotated controllers with the @responsebody annotation since it's done by default.

https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/bind/annotation/RestController.html

The controller is annotated with @RequestMapping (see https://github.com/jonashackt/spring-boot-vuejs/blob/master/backend/src/main/java/de/jonashackt/springbootvuejs/controller/BackendController.java) - or do you mean the methods? How should that work? PRs always welcome...

Fixed by @luanelioliveira 👍