So, there are about 4 ways I KNOW by/in which you can create a SpringBoot Web App AUTOMATICALLY without having to write a single line of code for configuration, e.t.c.
- By installing extension(s) in VSCode(Virtual Studio Code)
- By using start.spring.io's website, well your'e not creating the web app but the means to the web app.
- By using the STS(Spring Tool Suite) App
- By installing extension(s) in Intellij IDEA
- Okay so allow me break this down. I have only used the first two ways/methods, the last two have been confirmed by "sight seeing" :). I can most assuredly tell you that all 4 ways/methods work perfectly fine.
I will only show you how in the order of the no-brainer to the somewhat more brainer :), which are actually easy but for emphasis sake.
You simply type into your browser "start.spring.io" without the (" ") just like that.
This page shows up;
Since i'm talking about Creating a Web App, i'll be selecting two(2) dependecies,
not that it's a must to select TWO but i believe they are necessary/core to the Web app. As you can see, I've named my project name and selected Maven as the Build Automation Tool for my Java project.
Then you go right ahead by clicking the Generate button, then a zip file is automatically downloaded. As shown below;
that zip file is the key to our Web App, basically, that's our web app in a Zip file, YES i said it! :)
Now that's that on the usage of the start.spring.io site, you can go right ahead importing(after extracting the zip file ofcourse.) it over to your Java supported IDE(Eclipse, VScode, Intellij IDEA, just to name a few.) and start kicking.
Take a good look at the contents of your zip file, we'll be seeing same in the next method using VSCODE Extension download.
Now, you have your VSCode installed, if you don't, download it via Visual Studio
So, you get things running, and you have this, as shown below;
You are just a few steps closer to your Web App, Congratulations!
Then search for the Extensions; SpringBoot and Java(as it will be necessary for running the JAVA web app you want), you want to install the SpringBoot Extension Pack and the Java Extension Pack
As at the time of Writing this Post, I think i've seen something better(A combination of both extension packs and much more by Publisher Loaine Groner) to install instead of the the aformentioned, it is shown Below;
Once installed, you go right ahead by using the Command Palette by pressing the command; CTRL+SHIFT+P or simply by Pressing the F1 key on Windows only, then search for spring initialzr, as shown below;
Then click on the Create a Maven Project or whichever suits you, just like the start.spring.io's website we looked into just moments ago, but this is in the UI of VSCode.
Here we are asked to generate our Web App files into a location just like the one of the site but here, the difference is that, VScode's come extracted(prepared).
There you have it, your files are ready, everything's ready, just to click a few button's all.
Now we are that point! Irrevocably committed to booting up our WEB APP!
Then We click run, you should see it in the code, or you just right click and run application.
We are Up.
Although, you'll see a fallback error message, what this means is;
'Your'e seeing this because you haven't stated what you want to see'.
So, there you have it folks, that's how you create a SpringBoot Web App.
check out my Github for code
I hope this helps someone.