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

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.
主站蜘蛛池模板: 渑池县| 清镇市| 东乡| 富蕴县| 屯门区| 疏勒县| 威信县| 巴林右旗| 平山县| 鄂伦春自治旗| 柯坪县| 安宁市| 炎陵县| 乌鲁木齐县| 财经| 吉林省| 吉安县| 涪陵区| 临澧县| 临沧市| 晋江市| 白水县| 七台河市| 嘉义市| 手游| 紫金县| 荣成市| 视频| 新干县| 汕头市| 枞阳县| 秭归县| 青河县| 武平县| 夏津县| 清远市| 旺苍县| 韩城市| 弥渡县| 赤水市| 广水市|