79498925

Date: 2025-03-10 19:04:48
Score: 5.5
Natty: 4
Report link

You need to use @Body annotation to receive the body. Something like @Body String body. Request.getBody() will be null in Micronaut as it loads this data asynchronously.

Refer:

https://stackoverflow.com/a/75704413 https://micronaut-projects.github.io/micronaut-docs-mn1/1.1.x/guide/#requestResponse https://micronaut-projects.github.io/micronaut-docs-mn1/1.1.x/guide/#bodyAnnotation

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Body
  • User mentioned (0): @Body
  • Low reputation (1):
Posted by: Raghav D