Skip to content

Commit 2e91353

Browse files
committed
update readme
1 parent 10e0345 commit 2e91353

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff 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

7676
Example:
@@ -101,20 +101,22 @@ return:
101101
Viarus
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-
```

idea-tomcat.png

-37.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)