Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
As a dev get used to traditional springmvc development, if I need to post a request with customize type as its body, I just need to pass that in the methods argument without annotations. However, in Java Chassis, the argument in methods are query parameter by default. If I pass a customize instance as the parameter, it will throw exception saying it does not support complex type. This is very confusing. Maybe we should tell user to add the RequestBody annotation or when we detect the complex type in post request query parameter, we just take it as the request body?