Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JoyChou93 committed Jul 24, 2019
1 parent a169c10 commit a0e66f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ spring.datasource.password=woshishujukumima

### IDEA

Click `run` button.
- `git clone https://github.com/JoyChou93/java-sec-code`
- Open in IDEA and click `run` button.

Example:

Expand All @@ -87,7 +88,7 @@ Viarus

### Tomcat


- `git clone https://github.com/JoyChou93/java-sec-code` & `cd java-sec-code`
- Build war package by `mvn clean package`.
- Copy war package to tomcat webapps directory.
- Start tomcat application.
Expand Down Expand Up @@ -119,6 +120,8 @@ Change `war` to `jar` in `pom.xml`.
Build package and run.

```
git clone https://github.com/JoyChou93/java-sec-code
cd java-sec-code
mvn clean package -DskipTests
java -jar target/java-sec-code-1.0.0.jar
```
Expand Down
12 changes: 8 additions & 4 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ spring.datasource.password=woshishujukumima

### IDEA

直接点击run按钮即可运行。
- `git clone https://github.com/JoyChou93/java-sec-code`
- 在IDEA中打开,直接点击run按钮即可运行。

例子:

Expand All @@ -86,9 +87,10 @@ Viarus

### Tomcat

1. 生成war包 `mvn clean package`
2. 将target目录的war包,cp到Tomcat的webapps目录。
3. 重启Tomcat应用。
1. `git clone https://github.com/JoyChou93/java-sec-code & cd java-sec-code`
2. 生成war包 `mvn clean package`
3. 将target目录的war包,cp到Tomcat的webapps目录
4. 重启Tomcat应用


例子:
Expand Down Expand Up @@ -119,6 +121,8 @@ Viarus
再打包运行即可。

```
git clone https://github.com/JoyChou93/java-sec-code
cd java-sec-code
mvn clean package -DskipTests
java -jar 打包后的jar包路径
```
Expand Down

0 comments on commit a0e66f2

Please sign in to comment.