From a0e66f2526235eda92904c412d63a81ea5b7954b Mon Sep 17 00:00:00 2001 From: JoyChou Date: Wed, 24 Jul 2019 13:23:50 +0800 Subject: [PATCH] update readme --- README.md | 7 +++++-- README_zh.md | 12 ++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5dba7ebd..7e2d23f6 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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. @@ -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 ``` diff --git a/README_zh.md b/README_zh.md index d43e473b..e24c360c 100644 --- a/README_zh.md +++ b/README_zh.md @@ -70,7 +70,8 @@ spring.datasource.password=woshishujukumima ### IDEA -直接点击run按钮即可运行。 +- `git clone https://github.com/JoyChou93/java-sec-code` +- 在IDEA中打开,直接点击run按钮即可运行。 例子: @@ -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应用 例子: @@ -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包路径 ```