File tree Expand file tree Collapse file tree 2 files changed +17
-15
lines changed
Expand file tree Collapse file tree 2 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ Sort by letter.
5656
5757- Exclude tomcat in pom.xml.
5858
59- ```
59+ ``` xml
6060 <dependency >
6161 <groupId >org.springframework.boot</groupId >
6262 <artifactId >spring-boot-starter-web</artifactId >
@@ -70,7 +70,7 @@ Sort by letter.
7070 ```
7171
7272- Build war package by `mvn clean package`.
73- - Copy war package to Tomcat webapps directory.
73+ - Copy war package to tomcat webapps directory.
7474- Start tomcat application.
7575
7676Example:
@@ -101,20 +101,22 @@ return:
101101Viarus
102102```
103103
104- ### JAR
104+ ### Jar
105105
106- Change `war` to `jar` in `pom.xml`.
106+ - Change `war` to `jar` in `pom.xml`.
107107
108- ```
109- <groupId >sec</groupId >
110- <artifactId >java-sec-code</artifactId >
111- <version >1.0.0</version >
112- <packaging >war</packaging >
113- ```
108+ ```xml
109+ <groupId>sec</groupId>
110+ <artifactId>java-sec-code</artifactId>
111+ <version>1.0.0</version>
112+ <packaging>war</packaging>
113+ ```
114+
115+ - Build package and run.
116+
117+ ```
118+ mvn clean package -DskipTests
119+ java -jar target/java-sec-code-1.0.0.jar
120+ ```
114121
115- Build package and run.
116122
117- ```
118- mvn clean package -DskipTests
119- java -jar target/java-sec-code-1.0.0.jar
120- ```
You can’t perform that action at this time.
0 commit comments