- Spring 5.0 By Example
- Claudio Eduardo de Oliveira
- 183字
- 2021-06-24 19:17:33
Command line via the JAR file
To run it through the Java file, we need to compile and package it, and then we can run the project with the Java command line. To compile and package it, we can use the pretty standard Maven command like this:
mvn clean install
After the project is compiled and packaged as a Fat-JAR, we can execute the JAR file, go to the target folder and check the files from this folder, probably the result will look like this:

We have two main files in our target folder, the cms-0.0.1-SNAPSHOT.jar and the cms-0.0.1-SNAPSHOT.jar.original, the file with the .original extension is not executable. It is the original artifact resulting from the compilation, and the other is our executable file. It is what we are looking for, let's execute it, type the following command:
java -jar cms-0.0.1-SNAPSHOT.jar
The result should be as displayed. The application is up and running:

That is it for this part, in the next section, we will create the first REST (Representational State Transfer) resources and understand how the REST endpoints work.
- OpenDaylight Cookbook
- Monkey Game Development:Beginner's Guide
- The Android Game Developer's Handbook
- Practical UX Design
- Ext JS Data-driven Application Design
- iOS開發(fā)實(shí)戰(zhàn):從零基礎(chǔ)到App Store上架
- Python高級(jí)機(jī)器學(xué)習(xí)
- OpenGL Data Visualization Cookbook
- Unity&VR游戲美術(shù)設(shè)計(jì)實(shí)戰(zhàn)
- Odoo 10 Implementation Cookbook
- Web性能實(shí)戰(zhàn)
- Unity 2018 Augmented Reality Projects
- 大學(xué)計(jì)算機(jī)基礎(chǔ)實(shí)驗(yàn)指導(dǎo)
- Photoshop智能手機(jī)APP界面設(shè)計(jì)
- Python物理建模初學(xué)者指南(第2版)