Skip to content

Commit 7ba2e49

Browse files
committed
add 本地调试说明
1 parent 055f749 commit 7ba2e49

File tree

2 files changed

+52
-30
lines changed

2 files changed

+52
-30
lines changed

.idea/workspace.xml

Lines changed: 7 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
| [验证码相关漏洞] | 🌟🌟 |
1212

1313

14-
### 使用说明
14+
### Docker启动
1515

1616
```git
1717
git clone https://github.com/tangxiaofeng7/SecExample.git
@@ -21,7 +21,50 @@ docker-compose up -d
2121

2222
然后访问:http://localhost:8080
2323

24-
24+
25+
26+
### 本地调试
27+
28+
##### 下载源码:
29+
```git
30+
git clone https://github.com/tangxiaofeng7/SecExample.git
31+
```
32+
##### 使用idea导入
33+
34+
##### 编辑 src/main/resources/application.yml 的数据库配置
35+
```
36+
# url: jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC&useSSL=false
37+
url: jdbc:mysql://mysql-db:3306/mybatis?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
38+
```
39+
修改为
40+
```
41+
url: jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC&useSSL=false
42+
# url: jdbc:mysql://mysql-db:3306/mybatis?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
43+
```
44+
##### 本地启动mysql数据库
45+
启动数据库:
46+
```
47+
mysql.server start
48+
```
49+
进入 mysql终端:
50+
```
51+
mysql -u root -p
52+
```
53+
导入sql文件:
54+
```
55+
source /xx/SecExample/mysql/init.sql(绝对路径)
56+
```
57+
58+
##### 下载pom依赖
59+
```
60+
右键pom.xml =》 maven => 重新加载项目
61+
```
62+
##### 运行项目
63+
```
64+
运行 SecexampleApplication
65+
```
66+
67+
2568
### 靶场展示
2669

2770
#### 首页

0 commit comments

Comments
 (0)