mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 14:17:56 +00:00
perf[orm]: 简化了数据库mongodb的连接配置
This commit is contained in:
1 parent
a5b01b3d54
commit
539c8d4da8
7 files changed
+72
-18
No files matched your search
+3
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user