我正在使用命令对象,并且在我的命令对象中使用了域对象,如下所示。
class JobCommand {
List<Country> countries
String name
String age
.....
}
国家/地区域名如下:
@EqualsAndHashCode(includes="id")
class Country{
String id
String name
Date createDate
......
}
我从我的JobController访问这个jobCommand对象,并在我的gsp页面中设置my Country字段中的值。我在