Create a Spring Boot Project

For this tutorial, we are going to create a Spring Boot - JAR project using the Spring Initializr website.

  1. Go to the Spring Initializr website catalyst_alcity_appsail_spring_init_empty

  2. Enter the required details in the following manner:

    • Select Maven as Project, Java as Language, and 3.2.2 as the Spring Boot version.
    • Enter “com.catalyst.appsail” as the Group, and “aliencity” as the Artificat. The Name and Package name fields will be automatically generated.
    • Select Jar as the Packaging, and 17 as the Java version. catalyst_alcity_appsail_spring_init_populated
  3. Click the ADD DEPENDENCIES button, on the right side of the screen. catalyst_alcity_appsail_spring_init_depend_highlight

  4. Search for Spring Web in the drop-down and select the dependency. This step will install all the necessary dependencies required to build a Spring Boot web application when you generate the package. catalyst_alcity_appsail_spring_choose_dependancy

  5. Confirm all your selections, and click Generate. catalyst_alcity_appsail_spring_init_generate_highlighty

The aliencity Spring Boot project will be downloaded to your local system as a zip file.

Unzip the downloaded file and this directory, aliencity/ will be our local directory where we initialize the Catalyst AppSail service for our project. Along with all the required dependencies, it will also contain the AliencityApplication.java file. This file will contain the logic that allows you to run the application on Spring Boot.

The aliencity/ Spring Boot - JAR directory will look like this: catalyst_alcity_appsail_spring_init_dir

Note: This tutorial has created a Spring Boot project to demonstrate building a Spring Boot - JAR project, and deploying it as an AppSail service. You can learn how to do the same with Spring Boot - WAR projects from this help documentation.

For more information on how to create a Spring Boot project, you can visit their official help documentation.

Last Updated 2024-02-22 23:26:30 +0530 +0530