Skip to content

New Features

Compare
Choose a tag to compare
@Areeb-Gillani Areeb-Gillani released this 28 Aug 06:12
· 31 commits to main since this release
  • Controller can now have String or Class datatype as an input param. It will help the developer to ignore the initial casting efforts.
  • Previously, it was JsonObject only
  • Example: @PostMapping("/xyz") public void xyzController (JsonObject body, HttpRequest request){ //TODO }
  • Now
  • Example 1: @PostMapping("/example1") public void example1(String body, HttpRequest request){ }
  • Example 2: @PostMapping("/example2") public void example2(ClassA body, HttpRequest request){ }