mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-17 10:15:17 +00:00
perf[orm]: 简化了数据库mongodb的连接配置
This commit is contained in:
1 parent
d42816bf03
commit
a5b01b3d54
7 files changed
+19
-73
No files matched your search
+1
-3
@@ -42,9 +42,7 @@ OrmContext.getAccessor().update(obj);
|
||||
```
|
||||
<orm:config id="config" entity-package="com.zfoo.orm.**.entity">
|
||||
|
||||
<orm:host database="test" user="" password="">
|
||||
<orm:address name="server0" url="127.0.0.1:27017"/>
|
||||
</orm:host>
|
||||
<orm:host database="test" url="mongodb://127.0.0.1:27017" />
|
||||
|
||||
<!-- 缓存策略 -->
|
||||
<orm:caches>
|
||||
|
||||
Reference in new issue
Block a user