Skip to content

Commit a2a5eee

Browse files
committed
update mybatis readme
1 parent 3e06b52 commit a2a5eee

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ Sort by letter.
7575

7676
## How to run
7777

78+
The application will use mybatis auto-injection. Please run mysql ahead of time and configure the mysql database.
79+
80+
```
81+
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/java_sec_code
82+
spring.datasource.username=root
83+
spring.datasource.password=woshishujukumima
84+
```
85+
7886
- Tomcat
7987
- IDEA
8088
- JAR

README_zh.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ Tomcat默认JSESSION会话有效时间为30分钟,所以30分钟不操作会
7272

7373
## 如何运行
7474

75+
应用会用到mybatis自动注入,请提前运行mysql,并且进行mysql数据库配置。
76+
77+
```
78+
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/java_sec_code
79+
spring.datasource.username=root
80+
spring.datasource.password=woshishujukumima
81+
```
7582

7683
### Tomcat
7784

src/main/resources/templates/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
dataType: "json",
3030
success: function (r) {
3131
if (r.code == 0) {
32-
alert(r.message);
32+
// alert(r.message);
3333
location.href = ctx + 'index';
3434
} else {
3535
alert(r.message);

0 commit comments

Comments
 (0)