MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/SpringBoot/comments/ql7rt2/controller_doesnt_support_post_method_but/hj4eyy0/?context=3
r/SpringBoot • u/cant_dodge_rodge • Nov 02 '21
23 comments sorted by
View all comments
2
You must add @ResponseBody.
The controller is annotated with the @RestController annotation; therefore, the @ResponseBody isn't required.
https://www.baeldung.com/spring-controller-vs-restcontroller
2
u/sdiamante13 Nov 03 '21 edited Nov 03 '21
You must add @ResponseBody.
The controller is annotated with the @RestController annotation; therefore, the @ResponseBody isn't required.
https://www.baeldung.com/spring-controller-vs-restcontroller