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

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.
主站蜘蛛池模板: 安达市| 炎陵县| 团风县| 湖州市| 马边| 博罗县| 子洲县| 阿图什市| 抚宁县| 泽州县| 丽江市| 凌云县| 北京市| 石门县| 罗定市| 河曲县| 福鼎市| 郁南县| 仪陇县| 巨鹿县| 秦安县| 锡林郭勒盟| 滦南县| 东至县| 鹤峰县| 日照市| 汉中市| 土默特右旗| 文水县| 思茅市| 鄯善县| 江安县| 四川省| 西乌珠穆沁旗| 松阳县| 西安市| 双牌县| 吉木乃县| 剑阁县| 怀来县| 泽库县|