In this article, I will show the steps required to configure and set up the Spring boot web application project on a Windows machine and run the project on localhost.

Following are the primary steps that you need to follow

  • Download and Install Eclipse as IDE(latest versions 22 or 23).
  • Import the project as an “Existing Maven Project” into Eclipse.
  • Add required plugins into Eclipse.
  • Make required changes to the file.
  • Download and install a database as an MYSQL server with a workbench.
  • Import Database into MYSQL.

Download and Install Eclipse as an IDE

  • Download the latest version of the Eclipse installer from Download Eclipse.
  • Double-click on the installer and install Eclipse with the recommended JDK as a Java Enterprise application.
  • Wait Until it’s installed properly and click on “Launch” to open the Eclipse.

Add Lombok plugin in Eclipse (If required)

You might be getting errors in the getters and setters method, In this case, you need to add the Lombok plugin to your IDE. Below are the simple steps to add the Lombok plugin to Eclipse.

  • In Eclipse GoTo Help ==> Install new software ==>
  • Add the Lombok URL into “work with” and hit enter from your keyboard.
  • Just follow the instructions and make sure the Lombok plugin is installed properly.
  • Restart eclipse.

Database Configuraion

Download and install a database as an MYSQL server with a workbench, While you installing MySQL, always keep the default password “root”.

Import the Project Source Code, Database, and Run it.

  • Run Eclipse
  • Go to file ==> Import ==>Existing Maven Project
  • Browse the project from your machine and click to finish. It will start the import and wait until the import process is done.

If you still getting the error, It means Maven needs an update. Follow the below steps to update the maven.

  • Right-click on the root folder of the project.
  • Goto Maven ==> Update Project ==> Force update of Snapshots/Releases(Check this) ==> Click to OK.