Skip to content

Commit 87845b6

Browse files
authored
Update README.md
1 parent 72d0d3c commit 87845b6

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Tencent [APIJSON](https://github.com/Tencent/APIJSON) Server Framework for confi
88
#### Request: https://github.com/Tencent/APIJSON/blob/master/APIJSONORM/src/main/java/apijson/orm/Operation.java
99
![image](https://user-images.githubusercontent.com/5738175/167259922-f343683f-6335-4778-aaeb-d1b9aed999dc.png)
1010

11+
<br />
12+
13+
## 添加依赖
14+
## Add Dependency
15+
1116
### Maven
1217
#### 1. 在 pom.xml 中添加 JitPack 仓库
1318
#### 1. Add the JitPack repository to pom.xml
@@ -55,4 +60,34 @@ Tencent [APIJSON](https://github.com/Tencent/APIJSON) Server Framework for confi
5560
}
5661
```
5762

58-
<br /><br />
63+
<br />
64+
<br />
65+
<br />
66+
67+
## 初始化
68+
## Initialization
69+
1.在你项目的主程序启动类 Application 的 static {} 代码块配置 APIJSONApplication.DEFAULT_APIJSON_CREATOR,至少重写 createSQLConfig 方法返回你自己继承 APIJSONSQLConfig 的子类 <br />
70+
71+
1.Configure APIJSONApplication.DEFAULT_APIJSON_CREATOR in static {} of your Application, at least override createSQLConfig method and return your SQLConfig extends APIJSONSQLConfig. <br />
72+
73+
<br />
74+
75+
2.在你项目的主程序启动类 Application 的 main 方法里 SpringApplication.run 后调用 APIJSONApplication.init <br />
76+
77+
2.Call APIJSONApplication.init after SpringApplication.run in main method of your Application <br />
78+
79+
<br />
80+
81+
[apijson.framework](/src/main/java/apijson/framework) 里各个类的注释及 [APIJSONDemo](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONDemo)[DemoApplication](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/DemoApplication.java) <br />
82+
83+
See document in [apijson.framework](/src/main/java/apijson/framework) classes and [DemoApplication](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/DemoApplication.java) in [APIJSONDemo](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONDemo)
84+
85+
![image](https://user-images.githubusercontent.com/5738175/167260539-27d7e13b-27b9-43ad-925e-3f79c99e8ac9.png)
86+
87+
<br />
88+
<br />
89+
<br />
90+
91+
#### 对你有用的话点右上角 ⭐Star 支持一下,谢谢 ^_^
92+
#### Please ⭐Star this project ^_^
93+
https://github.com/APIJSON/apijson-framework

0 commit comments

Comments
 (0)