All you need to do to run your app, is run its Java Main type, just like you do any other plain Java application. A great feature of spring-boot is that you can easily create standalone ‘jar’ packaged projects that contain a fully functional embedded web server.
The Starter wizard let’s you choose between them in its ‘packaging’ option. Spring boot apps created by the wizard come in two flavors ‘jar’ or ‘war’. Before adding some content, let’s learn how to run the app, and verify it actually runs in the process. Thanks to the ‘magic’ of spring boot, and because we added the ‘web’ starter to our dependencies, this tiny piece of code is already a fully functional web server! It just doesn’t have any real content yet. The HelloBootApplication Java-main class generated by is the only code in our app at the moment. Using the STS wizard does all of this at the click of a button and ensures the project is configured correctly so you can immediately start coding.Īfter you click the finish button, your workspace will look something like this: You could use the web service directly yourself, download the zip it generates, unpack it, import it etc. The wizard is a GUI frontend that, under the hood, uses the web service at to generate some basic scaffolding. We pick the ‘web’ starter as we’ll build a simple ‘Hello’ rest service. A starter is set of classpath dependencies, which, together with Spring Boot auto configuration lets you get started with an app without needing to do any configuration. Spring boot provides so called ‘starters’. We use the “NewSpring Starter”wizardto create a basic spring boot app. use in your code to get the same editor support for your own configuration properties.use the new STS Properties editor to edit configuration properties.
Written by Kris De Volder on the Spring blog