Spring Params
By Path Variables Example: public void pathVariablesExample(@Pathvariable("name") String name) RequestParams: public void paramVariablesExample(@RequestParams(name="firstname" required=true default="user")String name) Encapsulated Parameters Public class ParameterModel{ private String p1;private String p2; } public void paramVariablesExample2(ParameterModel params){ params.p1+""+params.p2 }