perf[orm]: 简化了数据库mongodb的连接配置

This commit is contained in:
jaysunxiao committed 2021-06-10 20:35:48 +08:00
1 parent a5b01b3d54
commit 539c8d4da8
7 files changed
+72 -18

No files matched your search

+3 -1
View File
@@ -42,7 +42,9 @@ OrmContext.getAccessor().update(obj);
```
<orm:config id="config" entity-package="com.zfoo.orm.**.entity">
<orm:host database="test" url="mongodb://127.0.0.1:27017" />
<orm:host database="test" user="" password="">
<orm:address name="server0" url="127.0.0.1:27017"/>
</orm:host>
<!-- 缓存策略 -->
<orm:caches>