Scribd
Scribd
this.empName = empName;
this.empId = empId;
tempData.put(e.getKey(), e.getValue());
this.metadata = tempData;
return empName;
return empId;
return tempData;
//Singleton Class
class Employee {
private Employee() {}
if (emp == null) {
return emp;
@RestController
class EmployeeController {
@GetMapping()
Employee getEmployeeData(@RequestParam empId) {