Spring Course – Hello World Maven Web Project

Day #3 – Hello World Maven Web Project

#1 Configure Apache Tomcat Web Server(https://www.youtube.com/watch?v=JRGZSV79Q74)

  • In Eclipse, Window=>Show View=>Servers
  • In the mid of Servers window=>right click=>New=>Server=>Apache=>select installed version(Tomcat v9.0 Server)=>Next
  • Click Browse=>C:\apache-tomcat-9.0.0.M21(Location of server in your machine)
  • Finish

#2 Create a maven project (Internet is mandatory to download maven dependencies)

  • In Eclipse, File=>New=>Maven Project=>Next=>Type web in Filter
  • Select maven-archetype-webapp=>Next
  • Enter Group Id=>com.janani and Artifact Id=>bookapp-spring=>Finish

#3 Remove web.xml(Since it points to older version-2.3 but recent version is 3.1)

  • In bookapp-spring=>src=>main=>webapp=>WEB-INF=>Right click web.xml and delete

#4 Run the application


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s