Whatever pom.xml
we have used until now is enough to execute our sample REST service. This service would package the code into a JAR. To make this JAR executable we need to opt for the following options:
Here, we use the Maven tool to execute the generated JAR, steps for the same are as follows:
pom.xml
.spring-boot:run
in the Goals field. We have used the released version of Spring Boot in the code. However, if you are using the snapshot release, you can check the Update Snapshots checkbox. To use it in the future, type spring-boot-run
in the Remember as field.Run Maven dialog