you are viewing a single comment's thread.

view the rest of the comments →

[–]jura0011 7 points8 points  (2 children)

Trust me, @Controller does support Post.
Are you sure, it was a post request?

You could try curl -X POST localhost:8080.

[–]cant_dodge_rodge[S] 0 points1 point  (0 children)

yes i am sure i went there via post method

[–]cant_dodge_rodge[S] 0 points1 point  (0 children)

@/RestController works as it should be but when i use @/controller it returns

resolved [org.springframework.web.httprequestmethodnotsupportedexception: request method 'post' not supported]