📜  responseentity 对象 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:58.907000             🧑  作者: Mango

代码示例1
@RequestMapping(value = "/getCountry2")
@ResponseBody
public Country getCountry2() {
    
    var c = new Country();
    c.setName("France");
    c.setPopulation(66984000);
    
    return c;
}