Spring boot

Spring boot Introduction

Spring boot is a stand alone back-end java framework. Easy to developing a web application projects along with the microservices.it consist of dependencies for easy to manage the project works.

Let We Start to Create the Spring Boot Application

Go to google  type  spring initializr.

 

Select  Maven Project and Language  Java

Spring boot Select as Lowest one it is good.
so this example selected as 2.6.11

Java version also select as lowest one it will be best practice here selected as Java 8

you must install java 8 in your computer.if you install upper version no problem select the corresponding version. But lowest one is best i recommend.

After that add the Following Dependencies.

Spring Data JPA
MySQL Driver
Spring Web

After that click  Generate.

How to open the Project i attached the video below.it will help you to open the project.

open the pom.xml file you can see the all the Dependencies what you added.

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>

<dependency>
   <groupId>mysql</groupId>
   <artifactId>mysql-connector-java</artifactId>
</dependency>

application.properties

spring.application.name=firstapp
server.port=8083

spring.jpa.hibernate.ddl-auto=update
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

spring.datasource.url=jdbc:mysql://localhost:3307/lmsschool?createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=root

#jpa vendor adapter configuration
spring.jpa.database-platform=org.hibernate.dialect.MySQL57Dialect
spring.jpa.generate-ddl=true
spring.jpa.show-sql=true

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

 

admin

Recent Posts

Tesla Pi Phone: Is This the Next Super-Phone? Full Review & Details

What Is the Tesla Pi Phone?   Imagine if Tesla, the company that makes famous…

3 days ago

Tailwind CSS Inventory Management POS Project (Free Source Code)

Inventory Management POS systems are now an essential part of modern businesses such as bookshops,…

4 weeks ago

Build Simple Water System Calculator in Java Using Swing

If you're just beginning to learn Java GUI programming creating an Water System Calculator is a fantastic project for…

5 months ago

GitHub Copilot vs Microsoft Copilot Best AI Tool to Use in 2025

GitHub is a powerful tool used by teams and developers around the globe. This guide is…

5 months ago

Chat with Claude AI Free – Your Super-Smart AI Buddy

It's like having a super-smart buddy that is always there to help you write stories,…

5 months ago

Best Festivals UK 2025 [Free Guide Included]

The UK is known for its rich history, diverse culture, and most of all  its…

5 months ago