Spring Boot

Spring boot DTO Creation

this tutorials will help you to create the DTO. First you have have to create the class EmployeeDTO.java package com.springschool.firstapp.dto; import org.hibernate.annotations.Type; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import java.util.ArrayList; public class EmployeeDTO { private int customerId; private String customerName; private String customerAddress; private double customerSalary; private ArrayList contactNumbers; private String nic; private

Spring boot DTO Creation Read More »

Spring boot GetMapping annotation

In this tutorials explain the following annotation. @GetMapping :-  used for HTTP Get request This is an important annotation. i have explained with example below. I have attached the video tutorial below. and explain the easy steps to understand the process. TestController package com.springschool.firstapp.controller; import org.springframework.web.bind.annotation.*; @RestController @CrossOrigin @RequestMapping(“api/v1/test”) public class TestController { @GetMapping(path =

Spring boot GetMapping annotation Read More »