spring boot
use eclipse ide
click file -> new -> other
.........select maven project
click finish
group id like package name com.xxxx.xxxx
artifact id like your app name myappname
----------------------------------------------------
after click finish directory structure looks like
.................................................................
here see pom.xml file right click open with generic text editor eclipse
pom .xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sam.mavan</groupId>
<artifactId>helloApp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<description>creating hello world spring boot app</description>
</project>
here we need to add dependancies and parent from repository website
you can search web
and click version select maven then select dependancy code
you can search web here
pom.xml content
<parent>spring boot starter parent group id and artifact id of spring boot with version</parent>
once you gave version num of spring boot in parent you dont need to give version of spring boot web or other spring boot depencies
dependancy must add in dependancies
<dependancies>
<depedency> your dependancy 1</depedency>
<depedency> your dependancy 2</depedency>
<depedency> your dependancy 3</depedency>
<depedency> your dependancy ...</depedency>
</dependancies>
<properties> your jdk version number</properties>
<build> plugin info group id and artifact id
you can search google
Spring Boot Maven Plugin usage
copy code paste here
</build>
...............................................................
screen shots looks like
dependancies
remove ... 3 dots in plugin content
finally our pom.xml looks like
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sam.mavan</groupId>
<artifactId>helloApp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<description>creating hello world spring boot app</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.2</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
<properties>
<java.version>
20
</java.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
--------------------------------------
go to step 2 next step add void main to starting point
and controller class for rounting and views
use of annotation