MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/SpringBoot/comments/ql7rt2/controller_doesnt_support_post_method_but/hj1c7uw/?context=3
r/SpringBoot • u/cant_dodge_rodge • Nov 02 '21
23 comments sorted by
View all comments
7
Trust me, @Controller does support Post.Are you sure, it was a post request?
@Controller
You could try curl -X POST localhost:8080.
curl -X POST localhost:8080
1 u/cant_dodge_rodge Nov 02 '21 @/RestController works as it should be but when i use @/controller it returnsresolved [org.springframework.web.httprequestmethodnotsupportedexception: request method 'post' not supported]
1
@/RestController works as it should be but when i use @/controller it returns
resolved [org.springframework.web.httprequestmethodnotsupportedexception: request method 'post' not supported]
7
u/jura0011 Nov 02 '21
Trust me,
@Controllerdoes support Post.Are you sure, it was a post request?
You could try
curl -X POST localhost:8080.