You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use either Eclipse for JavaEE or IntelllJ IDEA Ultimate to make installation. For both, first download the project and save it to a path.
@@ -281,26 +187,35 @@ In the menu at the right, click libs, right click apijson-orm.jar,click add as l
281
187
Open apijson.demo.server.DemoSQLConfig. In line 40-61, change return values of `getDBUri`,`getDBAccount`,`getDBPassword`,`getSchema` to your own database.<br/>
// add userSSL=false for MySQL 8.0+ return "jdbc:mysql://localhost:3306?userSSL=false&serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8";
204
+
// for MySQL not greater than 5.7
205
+
return"jdbc:mysql://localhost:3306?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8"; // TODO TiDB can be used as MySQL, its defaut port is 4000
206
+
}
207
+
208
+
@JSONField(serialize=false)
209
+
@Override
210
+
publicString getDBAccount() {
211
+
return"root"; // TODO
212
+
}
213
+
214
+
@JSONField(serialize=false)
215
+
@Override
216
+
publicString getDBPassword() {
217
+
return"apijson"; // TODO TiDB can be used as MySQL, its defaut password is an empty string ""
218
+
}
304
219
```
305
220
306
221
**Note**: Instead of this step, you can also [import your database](#2.2).
0 commit comments