Answers for "difference between response bean and response entity"

0

responseentity object

@RequestMapping(value = "/getCountry2")
@ResponseBody
public Country getCountry2() {
    
    var c = new Country();
    c.setName("France");
    c.setPopulation(66984000);
    
    return c;
}
Posted by: Guest on September-17-2020
0

responseentity object

package com.zetcode;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application  {
    
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
Posted by: Guest on September-17-2020

Code answers related to "difference between response bean and response entity"

Browse Popular Code Answers by Language