Spring-MVCの散歩道 > 応用の森(JSON編) > JSONデータ構造から動的クラス生成
|
package jp.dip.arimodoki.model;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Scope("prototype")
@Component
public class JsonReqArea implements JsonReqAreaIf {
/**
* 地域コード
*/
private String areacd = "";
public String getAreacd() {
return areacd;
}
public void setAreacd(String areacd) {
this.areacd = areacd;
}
}
|