One way to start a new Git Spring Boot project

  1. Go to local git repository, create a new folder for your project
  2. On command line inside this new folder type >git init
  3. Open STS, Import > Git > Projects from Git > Existing local repository
  4. Pick your new git repository you just made, click Next
  5. Import using the New Project wizard
  6. Choose Spring Boot > Spring Starter Project.
  7. Copy all the contents of the newly created project to the local git repository manually using Windows Explorer etc.
  8. Commit the new files to the local repository.
  9. Push to remote repository on GitHub if required.
  10. Open STS, Import > Git > Projects from Git > Existing local repository.
  11. Pick your new git repository you just made, click Next.
  12. Import using the Import existing Eclipse Project.
  13. Run As > Spring Boot App, and all should be working.

There must be an easier way that manually copying… but you need to be in a Work-space to use the New Spring Boot project wizard.

Leave a comment