knightliao 8 роки тому
батько
коміт
e99a4363b3

+ 5 - 1
docs/source/others/contribute.md

@@ -1,10 +1,14 @@
 社区贡献
 =======
 
-## 其他disconf-web开源
+## 其他disconf-web开源实现
 
 - https://github.com/comlkz/disconf-web
 
+## 其他disconf-client开源实现
+
+- Node: https://github.com/Corey600/node-disconf-client
+
 ## 网友贡献/使用教程
 
 - [cnblog: 马进举 统一配置管理-百度disconf ](http://www.cnblogs.com/majinju/p/4502246.html)

+ 7 - 2
docs/source/others/src/contribute.rst

@@ -1,11 +1,16 @@
 社区贡献
 ========
 
-其他disconf-web开源
--------------------
+其他disconf-web开源实现
+-----------------------
 
 -  https://github.com/comlkz/disconf-web
 
+其他disconf-client开源实现
+--------------------------
+
+-  Node: https://github.com/Corey600/node-disconf-client
+
 网友贡献/使用教程
 -----------------
 

+ 1 - 0
docs/source/others/src/update.rst

@@ -13,3 +13,4 @@
    -  支持https的web端 https://github.com/knightliao/disconf/issues/158
    -  path支持windows: https://github.com/knightliao/disconf/issues/166
    -  删除类 DisconfMgrJustHostFileBean
+   -  DisconfFile 的属性 copy2TargetDirPath 更改为 targetDirPath

+ 28 - 7
docs/source/tutorial-client/src/Tutorial11-config-download-path.rst

@@ -7,25 +7,46 @@ Tutorial 11 配置文件下载地址讨论
 解决:按以下顺序进行判断
 ~~~~~~~~~~~~~~~~~~~~~~~~
 
+对于注解式配置文件:
+
 -  一定会下载到 disconf.user\_define\_download\_dir
-   目录下(使用此方法可以方便的构造一个下载器
+   目录下(使用此方法可以方便的构造一个下载器.
    `Tutorial10 <Tutorial10.html>`__ )
 -  如果 disconf.enable\_local\_download\_dir\_in\_class\_path
    为true(默认值), 则会执行以下判断:
 
-   -  如果 @DisconfFile 的 copy2TargetDirPath
-      值不为空,则会下载这个目录下。(copy2TargetDirPath值说明:以"/"开头则是系统的全路径,否则则是相对于classpath的路径,默认是classpath根路径
-      注意:根路径要注意是否有权限,否则会出现找不到路径,推荐采用相对路径)。这对于那些不想放在classpath根目录的程序,比较有用。
-   -  如果 @DisconfFile 的 copy2TargetDirPath
-      值为空,则会下载到根路径下。大部分程序是从根目录读取配置的,因此,默认是放到根下。
+   -  如果 @DisconfFile 的 targetDirPath 值不为空, 则会下载到
+      targetDirPath 这个目录下,
+      配置数据从该路径读取。这对于那些不想放在classpath根目录的程序,
+      比较有用.
+   -  如果 @DisconfFile 的 targetDirPath 值为空,
+      则会下载到classpath路径下, 配置数据从该路径读取.
+
+-  如果 disconf.enable\_local\_download\_dir\_in\_class\_path 为false,
+   则不会下载到classpath目录下. 配置数据从
+   disconf.user\_define\_download\_dir 读取
+
+对于XML式配置文件:
+
+-  一定会下载到 disconf.user\_define\_download\_dir
+   目录下(使用此方法可以方便的构造一个下载器).
+-  如果 disconf.enable\_local\_download\_dir\_in\_class\_path
+   为true(默认值), 则会执行以下判断:
+
+   -  如果 @DisconfFile 的 targetDirPath 值不为空, 则会下载到
+      targetDirPath 这个目录下.
+   -  如果 @DisconfFile 的 targetDirPath 值为空,
+      则会下载到classpath路径下.
 
 -  如果 disconf.enable\_local\_download\_dir\_in\_class\_path 为false,
-   则不会下载到classpath目录下
+   则不会下载到classpath目录下.
 
 注:
 
 #. 如果不作任何配置的改变,默认情况下,会下载到
    disconf.user\_define\_download\_dir 目录 和 classpath 两个目录下。
+#. targetDirPath
+   值说明:以"/"开头则是系统的全路径,否则则是相对于classpath的路径,默认是classpath根路径。注意:根路径要注意是否有权限,否则会出现找不到路径,推荐采用相对路径。
 #. 配置说明看这里 `config <../../config/client-config.html>`__
 
 问题二 不想下载到classpath目录下