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

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.
主站蜘蛛池模板: 临海市| 团风县| 青川县| 吉首市| 禹州市| 莲花县| 从化市| 南阳市| 龙游县| 中西区| 蒲城县| 那坡县| 沅江市| 海林市| 永清县| 天全县| 凤台县| 岳普湖县| 沙河市| 墨竹工卡县| 剑川县| 柘城县| 日土县| 友谊县| 札达县| 中宁县| 土默特左旗| 老河口市| 岗巴县| 青河县| 曲阳县| 东海县| 青冈县| 顺昌县| 八宿县| 报价| 湾仔区| 砚山县| 中西区| 垫江县| 金昌市|