如果使用复杂对象而不是@RequestParam,则参数的特定名称

If I use @RequestParam in my controllers, I can name a variable different from the param name, if I set "name" attribute.

public String showSomething(@RequestParam(name = "field_1") String firstField /*other params*/) {
  return "viewName";
}

如果使用复杂对象,是否可以命名与参数名称不同的变量?

ComplexObject.java

public class ComplexObject {
  private String firstField; // I want the value of the "field_1" parameter to get here
  private String secondField; // And "field_2" to get here

//getters, setters

}

SimpleController.java

@Controller
public class SimpleController {

  public String showSomething(ComplexObject complexObject) {
     return "viewName";
}

如果可能的话,我想知道如何去做。