how to get class object from responseentity code example

Example 1: responseentity object

package com.zetcode.model;

public class Country {
    
    private String name;
    private int population;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPopulation() {
        return population;
    }

    public void setPopulation(int population) {
        this.population = population;
    }
}

Example 2: responseentity object



    4.0.0

    com.zetcode
    responseentityex
    1.0-SNAPSHOT
    jar

    
        UTF-8
        11
        11
    

    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.0.RELEASE
    

    
        
            org.springframework.boot
            spring-boot-starter-web
        
    

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    
    

Tags:

Misc Example