Home Spring boot How to add Two numbers using Spring boot

How to add Two numbers using Spring boot

5 min read
0
0
5,341

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

Create the  Package Domain

After that select the  src/main/java right click the new package create the package name as com.example.FormExampleSpring.domain

After created the package select the package com.example.FormExampleSpring.domain  right click and  create the class file name Addtion.class

After that  Create the Controller

AdditionController

After  that create the Controller  select src/main/java right click new package create the package name as com.example.FormExampleSpring.StudentController

inside the package create the controller as AdditionController.java

After fill the Form click Submit goes to calculate.html and display the total

After that create the calculate.html Page

calculate.html

i have attached the video link below. which will do this tutorials step by step.

 

 

Load More Related Articles
Load More By admin
Load More In Spring boot

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

Create Maven project in Intellij

In this tutorial will see how to create Maven project in Intellij step by step. First Step…