spring boot tutorial

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 »

How to add Two numbers using Spring boot

This tutorial will teach you how to add two numbers using Spring Boot. First Step Select the Template folder.Inside the template folder create index.html page. index.html <!DOCTYPE html> <html> <head> <meta charset=”ISO-8859-1″> <title>Insert title here</title> <link href=”https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css” rel=”stylesheet” > </head> <body> <div class=”container”> <div class=”row”> <div> <h1>Add Two Numbers</h1> </div> <form th:action=”@{addtion}” th:object=”${addtion}” method=”post”> <div>

How to add Two numbers using Spring boot Read More »