官术网_书友最值得收藏!

  • Spring 5.0 Projects
  • Nilang Patel
  • 191字
  • 2021-07-02 12:34:55

Creating an empty application

We will use Maven to generate an empty application with the structure required for Java-based web applications. If you do not have Maven installed, please follow the instructions here (https://maven.apache.org/install.html) to install Maven. Once installed, run the following command to create an empty application:

mvn archetype:generate -DgroupId=com.nilangpatel.worldgdp -DartifactId=worldgdp -Dversion=0.0.1-SNAPSHOT -DarchetypeArtifactId=maven-archetype-webapp

Running the preceding command will show the command-line argument values for confirmation as shown in the following screenshot: 

You would have to type in Y in the Command Prompt shown in the previous screenshot to complete the empty project creation. Now you can import this project into an IDE of your choice and continue with the development activity. For the sake of simplicity, we will use Eclipse, as it is among the most popular IDEs used by the Java community today. 

On successful creation of the application, you will see the folder structure, as shown in the following screenshot:

You will see index.jsp added by default while creating the default project structure. You must delete it as, in this application, we will use Thymeleaf—another template engine to develop the landing page.
主站蜘蛛池模板: 遵化市| 浑源县| 大名县| 永嘉县| 滨海县| 涟水县| 乾安县| 滕州市| 安化县| 云梦县| 九江县| 河南省| 嵊泗县| 平乡县| 武邑县| 河北区| 阳江市| 彰武县| 西和县| 大渡口区| 岳池县| 慈溪市| 景洪市| 漯河市| 米泉市| 龙口市| 剑河县| 西乌珠穆沁旗| 浠水县| 乌兰县| 通州市| 越西县| 酒泉市| 巍山| 张家港市| 上栗县| 安图县| 大丰市| 互助| 通榆县| 清水县|