first commit

This commit is contained in:
2025-02-20 14:59:35 +08:00
parent d7be84fac6
commit d4a3bb8ffc
2541 changed files with 336536 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="httpd" desc="HTTP服务">
<item key="context" value="httpd.root" type="protected" desc="必须,HTTP服务下包括的上下文环境,多个用逗号隔开" />
<item key="scheme" value="HTTP" type="protected" desc="HTTP或HTTPS协议" />
<item key="port" value="80" type="private" desc="监听端口" />
<item key="poMinSize" value="5" type="protected" desc="HTTP处理线程池最小值" />
<item key="poMaxSize" value="10" type="protected" desc="HTTP处理线程池最大值" />
</group>
<group id="httpd.root" desc="HTTP根上下文环境">
<item key="path" value="/" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./resource" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="index.htm" type="protected" desc="欢迎页" />
</group>
<group id="manage" desc="HTTP服务">
<item key="context" value="manage.root" type="protected" desc="必须,HTTP服务下包括的上下文环境,多个用逗号隔开" />
<item key="scheme" value="HTTP" type="protected" desc="HTTP或HTTPS协议" />
<item key="port" value="88" type="private" desc="监听端口" />
<item key="poMinSize" value="5" type="protected" desc="HTTP处理线程池最小值" />
<item key="poMaxSize" value="10" type="protected" desc="HTTP处理线程池最大值" />
</group>
<group id="manage.root" desc="HTTP根上下文环境">
<item key="path" value="/" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./manage" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="index.htm" type="protected" desc="欢迎页" />
</group>
</zhiqim-config>
+83
View File
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="httpd" desc="HTTP服务">
<item key="context" value="httpd.root,httpd.manage" type="protected" desc="必须,HTTP服务下包括的上下文环境,多个用逗号隔开" />
<item key="scheme" value="HTTP" type="protected" desc="必须,HTTP或HTTPS协议" />
<item key="port" value="80" type="protected" desc="必须,监听端口" />
<item key="io" value="NIO" type="protected" desc="可选,IO方式,BIO|NIO,默认NIO" />
<item key="ipAddress" value="" type="protected" desc="监听的IP地址,未配置和为空表示全IP(0.0.0.0),可配置网卡IP地址" />
<item key="soTimeout" value="60" type="protected" desc="读流数据超时时长,单位:秒,未配置缺省60秒" />
<item key="soLinger" value="0" type="protected" desc="关闭连接时TIME_WAIT时长,单位:秒,未配置或小于等于0表示未开启(未开启缺省240秒(2ML)" />
<item key="soIdleTime" value="53" type="protected" desc="HTTP连接最大保持时间,未配置缺省53秒" />
<item key="poMinSize" value="5" type="protected" desc="HTTP处理线程池最小值,未配置缺省20" />
<item key="poMaxSize" value="10" type="protected" desc="HTTP处理线程池最大值,未配置缺省200" />
<item key="poIdleTime" value="600" type="protected" desc="HTTP处理线程最大空闲时间,未配置缺省600秒" />
<item key="poMaxQueueSize" value="30" type="protected" desc="HTTP处理线程全部忙,等待的队列大小,未配置缺省poIdleTime的3倍" />
<item key="accessLog" value="false" type="protected" desc="HTTP访问日志是否打印true|false,未配置缺省false,为true时还配合logging配置" />
</group>
<group id="httpd.root" desc="HTTP根上下文环境">
<item key="domain" value="" type="protected" desc="上下文环境对应的域名,多个逗号隔开" />
<item key="path" value="/" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./resource" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="/index.htm" type="protected" desc="欢迎页" />
<!-- 静态上下文可选配置 -->
<item key="encoding" value="UTF-8" type="protected" desc="服务默认编码,未配置缺省UTF-8" />
<item key="notFoundUrl" value="/index.htm" type="protected" desc="找不到页面时转到该页" />
<item key="maxContentLength" value="8388608" type="protected" desc="支持的上传最大内容长度,默认8M" />
<item key="chunkSize" value="1048576" type="protected" desc="分块大小,默认1M,最大2097152(2M),最小4096(4K)" />
<item key="expires" value="3600" type="protected" desc="静态文件有效期,单位秒,默认3600" />
<item key="filter" value="/zml/*,*.jsp" type="protected" desc="过滤访问,默认为空,匹配上的访问时返回403错误,多个用逗号隔开,如/zml/*" />
<!-- ZML上下文可选配置 -->
<item key="pathExactPrior" value="true" type="protected" desc="路径精确优先还是组件循序,默认true表示精确优先" />
<item key="zml.pattern" value="*.htm,*.zml" type="protected" desc="ZML模式,未配置缺省为*.htm,*.zml" />
<item key="zml.soIdleTime" value="86400" type="protected" desc="ZML保持时长,单位:秒,未配置缺省24小时" />
<item key="zml.poIdleTime" value="3600" type="protected" desc="ZML空闲时长,单位:秒,未配置缺省1小时" />
<item key="cookie.use" value="true" type="protected" desc="是否使用cookie,默认为true" />
<item key="cookie.domain" value="" type="protected" desc="保存cookie到指定域名,为空取访问时的域名" />
<item key="cookie.port" value="" type="protected" desc="保存cookie到指定端口,为空和为0取访问时的端口" />
<item key="cookie.path" value="" type="protected" desc="保存cookie到指定端口,为空等于path" />
<item key="session.manager" value="org.zhiqim.httpd.sessioner.HashSessionManager" type="protected" desc="会话管理器,未配置缺省内置的HashSessionManager" />
<item key="session.timeout" value="18000" type="protected" desc="会话超时时长,单位:秒,最小20秒,未配置缺省1800秒(30分钟)" />
<item key="session.idName" value="jsessionid" type="protected" desc="cookie或redirect-url时的取sessionid的名称,未配置缺省jsessionid" />
<item key="session.parameter" value="http://127.0.0.1:10180/service/rmi,sessioner,58fda2df" type="protected" desc="会话管理器的其他参数" />
</group>
<group id="httpd.manage" desc="HTTP根上下文环境">
<item key="domain" value="" type="protected" desc="上下文环境对应的域名,多个逗号隔开" />
<item key="path" value="/admin" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./manage" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="/index.htm" type="protected" desc="欢迎页" />
<!-- 静态上下文可选配置 -->
<item key="encoding" value="UTF-8" type="protected" desc="服务默认编码,未配置缺省UTF-8" />
<item key="notFoundUrl" value="/index.htm" type="protected" desc="找不到页面时转到该页" />
<item key="maxContentLength" value="8388608" type="protected" desc="支持的上传最大内容长度,默认8M" />
<item key="chunkSize" value="1048576" type="protected" desc="分块大小,默认1M,最大2097152(2M),最小4096(4K)" />
<item key="expires" value="3600" type="protected" desc="静态文件有效期,单位秒,默认3600" />
<item key="filter" value="/zml/*,*.jsp" type="protected" desc="过滤访问,默认为空,匹配上的访问时返回403错误,多个用逗号隔开,如/zml/*" />
<!-- ZML上下文可选配置 -->
<item key="pathExactPrior" value="true" type="protected" desc="路径精确优先还是组件循序,默认true表示精确优先" />
<item key="zml.pattern" value="*.htm,*.zml" type="protected" desc="ZML模式,未配置缺省为*.htm,*.zml" />
<item key="zml.soIdleTime" value="86400" type="protected" desc="ZML保持时长,单位:秒,未配置缺省24小时" />
<item key="zml.poIdleTime" value="3600" type="protected" desc="ZML空闲时长,单位:秒,未配置缺省1小时" />
<item key="cookie.use" value="true" type="protected" desc="是否使用cookie,默认为true" />
<item key="cookie.domain" value="" type="protected" desc="保存cookie到指定域名,为空取访问时的域名" />
<item key="cookie.port" value="" type="protected" desc="保存cookie到指定端口,为空和为0取访问时的端口" />
<item key="cookie.path" value="" type="protected" desc="保存cookie到指定端口,为空等于path" />
<item key="session.manager" value="org.zhiqim.httpd.sessioner.HashSessionManager" type="protected" desc="会话管理器,未配置缺省内置的HashSessionManager" />
<item key="session.timeout" value="18000" type="protected" desc="会话超时时长,单位:秒,最小20秒,未配置缺省1800秒(30分钟)" />
<item key="session.idName" value="jsessionid" type="protected" desc="cookie或redirect-url时的取sessionid的名称,未配置缺省jsessionid" />
<item key="session.parameter" value="" type="protected" desc="会话管理器的其他参数" />
<item key="upload.large.rootDir" value="./uploadlarge" type="protected" desc="大文件上传根目录" />
</group>
</zhiqim-config>
+33
View File
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="httpd" desc="HTTP服务器">
<item key="context" value="httpd.root" type="protected" desc="必须,HTTP服务下包括的上下文环境,多个用逗号隔开" />
<item key="scheme" value="HTTP" type="protected" desc="HTTP或HTTPS协议" />
<item key="port" value="80" type="protected" desc="监听端口" />
<item key="poMinSize" value="5" type="protected" desc="HTTP处理线程池最小值" />
<item key="poMaxSize" value="10" type="protected" desc="HTTP处理线程池最大值" />
</group>
<group id="httpd.root" desc="HTTP根上下文环境">
<item key="path" value="/" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./resource" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="index.htm" type="protected" desc="欢迎页" />
</group>
<group id="manage" desc="HTTP服务器">
<item key="listen" value="httpd.listen" type="protected" desc="必须,HTTP服务的监听器" />
<item key="listen.domain" value="www.fadfox.org" type="protected" desc="必须,HTTP服务的监听器" />
<item key="context" value="manage.root" type="protected" desc="必须,HTTP服务下包括的上下文环境,多个用逗号隔开" />
</group>
<group id="manage.root" desc="HTTP根上下文环境">
<item key="path" value="/" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./resource" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="index.htm" type="protected" desc="欢迎页" />
</group>
</zhiqim-config>
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="httpd" desc="HTTP服务器">
<item key="context" value="httpd.root,httpd.admin" type="protected" desc="必须,HTTP服务下包括的上下文环境,多个用逗号隔开" />
<item key="scheme" value="HTTP" type="protected" desc="HTTP或HTTPS协议" />
<item key="port" value="80" type="protected" desc="监听端口" />
<item key="poMinSize" value="5" type="protected" desc="HTTP处理线程池最小值" />
<item key="poMaxSize" value="10" type="protected" desc="HTTP处理线程池最大值" />
</group>
<group id="httpd.root" desc="HTTP根上下文环境">
<item key="path" value="/" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./resource" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="/index.htm" type="protected" desc="欢迎页" />
</group>
<group id="httpd.admin" desc="HTTP管理上下文环境">
<item key="path" value="/admin" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./admin" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="/index.htm" type="protected" desc="欢迎页" />
</group>
</zhiqim-config>
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="httpd" desc="HTTP服务">
<item key="context" value="httpd.root" type="protected" desc="HTTP服务下包括的上下文环境,多个用逗号隔开" />
<item key="scheme" value="HTTPS" type="protected" desc="HTTP或HTTPS协议" />
<item key="port" value="443" type="protected" desc="监听端口" />
<item key="io" value="NIO" type="protected" desc="可选,IO方式NIO/BIO,默认NIO" />
<item key="poMinSize" value="20" type="protected" desc="HTTP处理线程池最小值" />
<item key="poMaxSize" value="50" type="protected" desc="HTTP处理线程池最大值" />
<item key="soIdleTime" value="31" type="protected" desc="HTTP连接最大保持时间,未配置缺省71秒" />
<item key="keystorePath" value="./conf/https/t2018.zhiqim.com.jks" type="protected" desc="HTTPS时必须,SSL密钥文件路径" />
<item key="keystorePass" value="zhiqim" type="protected" desc="HTTPS时必须,SSL密钥文件密码" />
</group>
<group id="httpd.root" desc="HTTP根上下文环境">
<item key="path" value="/" type="protected" desc="上下文环境路径,必填" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classpath|directory" />
<item key="resourcePath" value="./resource" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="index.htm" type="protected" desc="欢迎页" />
<item key="upload.large.rootDir" value="./uploadlarge" type="protected" desc="大文件上传根目录" />
</group>
</zhiqim-config>
Binary file not shown.
+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="httpd" desc="HTTP服务">
<item key="context" value="httpd.root" type="protected" desc="必须,HTTP服务下包括的上下文环境,多个用逗号隔开" />
<item key="scheme" value="HTTPS" type="protected" desc="必须,HTTP或HTTPS协议" />
<item key="port" value="443" type="protected" desc="必须,监听端口" />
<item key="io" value="NIO" type="protected" desc="可选,IO方式,AIO|BIO|NIO,默认NIO" />
<item key="ipAddress" value="" type="protected" desc="监听的IP地址,未配置和为空表示全IP(0.0.0.0),可配置网卡IP地址" />
<item key="soTimeout" value="60" type="protected" desc="读流数据超时时长,单位:秒,未配置缺省60秒" />
<item key="soLinger" value="0" type="protected" desc="关闭连接时TIME_WAIT时长,单位:秒,未配置或小于等于0表示未开启(未开启缺省240秒(2ML)" />
<item key="poMinSize" value="5" type="protected" desc="HTTP处理线程池最小值,未配置缺省20" />
<item key="poMaxSize" value="10" type="protected" desc="HTTP处理线程池最大值,未配置缺省200" />
<item key="poMaxQueueSize" value="30" type="protected" desc="HTTP处理线程全部忙,等待的队列大小,未配置缺省poIdleTime的3倍" />
<item key="poIdleTime" value="600" type="protected" desc="HTTP处理线程最大空闲时间,未配置缺省600秒" />
<item key="accessLog" value="false" type="protected" desc="HTTP访问日志是否打印true|false,未配置缺省false,为true时还配合logging配置" />
<!-- 以下为HTTPS专用 -->
<item key="keystorePath" value="./conf/https_all/keystore.jks" type="protected" desc="HTTPS时必须,SSL密钥文件路径" />
<item key="keystorePass" value="123456" type="protected" desc="HTTPS时必须,SSL密钥文件密码" />
<item key="truststorePath" value="./conf/https_all/trust.jks" type="protected" desc="SSL信任CA文件路径" />
<item key="truststorePass" value="123456" type="protected" desc="SSL信任CA文件密码,当truststorePath有配置时该项必须" />
<item key="clientAuth" value="false" type="protected" desc="是否需要客户端认证,未配置缺省false" />
</group>
<group id="httpd.root" desc="HTTP根上下文环境">
<item key="domain" value="" type="protected" desc="上下文环境对应的域名,多个逗号隔开" />
<item key="path" value="/" type="protected" desc="必须,上下文环境路径" />
<item key="resourceType" value="directory" type="protected" desc="资源目录类型classPath|directory" />
<item key="resourcePath" value="./resource" type="protected" desc="资源目录" />
<item key="welcomeUrl" value="index.htm" type="protected" desc="欢迎页" />
<item key="notFoundUrl" value="index.htm" type="protected" desc="找不到页面时转到该页" />
<item key="filter" value="/conf/*,/ftml/*" type="protected" desc="过滤访问,默认为空,匹配上的访问时返回403错误,多个用逗号隔开,如/conf/*" />
<item key="encoding" value="UTF-8" type="protected" desc="服务默认编码,未配置缺省UTF-8" />
<!-- 以下为ZmlContext专用 -->
<item key="useCookie" value="true" type="protected" desc="是否使用cookie,默认为true" />
<item key="sessionManager" value="org.zhiqim.httpd.session.HashSessionManager" type="protected" desc="会话管理器,未配置缺省内置的HashSessionManager" />
<item key="sessionTimeout" value="1800" type="protected" desc="会话超时时长,单位:秒,最小20秒,未配置缺省1800秒(30分钟)" />
<item key="sessionIdName" value="jsessionid" type="protected" desc="cookie或redirect-url时的取sessionid的名称,未配置缺省jsessionid" />
<item key="sessionParameter" value="" type="protected" desc="会话管理器的其他参数" />
<item key="zml.pattern" value="*.htm,*.zml" type="protected" desc="ZML模式,未配置缺省为*.htm,*.ftm,*.ftml" />
<item key="zml.soIdleTime" value="86400" type="protected" desc="ZML保持时长,单位:秒,未配置缺省24小时" />
<item key="zml.poIdleTime" value="3600" type="protected" desc="ZML空闲时长,单位:秒,未配置缺省1小时" />
</group>
</zhiqim-config>
Binary file not shown.
Binary file not shown.
+26
View File
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="httpd" desc="HTTP服务器">
<item key="context" value="httpd.root" type="private" desc="HTTP服务下包括的上下文环境,多个用逗号隔开" />
<item key="scheme" value="HTTPS" type="private" desc="HTTP或HTTPS协议" />
<item key="port" value="443" type="private" desc="监听端口" />
<item key="poMinSize" value="5" type="private" desc="HTTP处理线程池最小值" />
<item key="poMaxSize" value="10" type="private" desc="HTTP处理线程池最大值" />
<item key="keystorePath" value="./conf/https_trust/keystore.jks" type="private" desc="SSL密钥文件路径" />
<item key="keystorePass" value="123456" type="private" desc="SSL存储密钥" />
<item key="truststorePath" value="./conf/https_trust/trust.jks" type="private" desc="SSL密钥文件路径" />
<item key="truststorePass" value="123456" type="private" desc="SSL信任密钥" />
<item key="clientAuth" value="false" type="private" desc="客户端认证" />
</group>
<group id="httpd.root" desc="HTTP根上下文环境">
<item key="path" value="/" type="private" desc="上下文环境路径,必填" />
<item key="resourceType" value="directory" type="private" desc="资源目录类型classPath|directory" />
<item key="resourcePath" value="./resource" type="private" desc="资源目录" />
<item key="welcomeUrl" value="index.htm" type="private" desc="欢迎页" />
</group>
</zhiqim-config>
Binary file not shown.
Binary file not shown.
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="logging" desc="日志配置">
<item key="logging.info" value="debug-info" type="protected" desc="信息日志配置" />
<item key="logging.error" value="error-fatal" type="protected" desc="错误日志配置" />
<item key="logging.httpd" value="debug-fatal" type="protected" desc="HTTPD监听日志配置" />
</group>
<group id="logging.info" desc="信息日志配置">
<item key="console.out" value="true" type="protected" desc="是否输出到控制台" />
<item key="file.out" value="true" type="protected" desc="是否输出到文件" />
<item key="file.path" value="./logs/info.log" type="protected" desc="输出到文件路径" />
</group>
<group id="logging.error" desc="错误日志配置">
<item key="console.out" value="true" type="protected" desc="是否输出到控制台" />
<item key="file.out" value="true" type="protected" desc="是否输出到文件" />
<item key="file.path" value="./logs/error.log" type="protected" desc="输出到文件路径" />
</group>
<group id="logging.httpd" desc="错误日志配置">
<item key="must.name" value="httpd.listen" type="protected" desc="必须匹配日志名称,默认为空即不匹配" />
<item key="file.out" value="true" type="protected" desc="是否输出到文件" />
<item key="file.path" value="./logs/httpd.log" type="protected" desc="输出到文件路径" />
</group>
</zhiqim-config>
+12
View File
@@ -0,0 +1,12 @@
[boot]
name=ZhiqimHttpd
version=1.2
port=50080
[config]
logging=./conf/logging.xml
httpd=./conf/httpd.xml
[service]
logging=com.zhiqim.kernel.logging.LogServer
httpd=org.zhiqim.httpd.HttpServer
+33
View File
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ZHIQIM-CONFIG PUBLIC "-//ZHIQIM //DTD Zhiqim-Config Configuration 1.5.0//EN" "http://zhiqim.org/xmldtds/zhiqim_config_1_5_0.dtd">
<zhiqim-config>
<group id="boot" desc="系统启动配置">
<item key="name" value="知启蒙WEB容器" type="protected" desc="系统名称" />
<item key="version" value="V1.5.0" type="protected" desc="系统版本" />
<item key="port" value="50080" type="private" desc="系统监听端口,用于启动监听和命令关闭工程" />
</group>
<group id="config" desc="系统其他配置文件,./开头表示工程相对路径下,绝对路径使用/或d:/等(Windows也使用顺斜杠作路径)">
<item key="httpd" value="./conf/http_all/httpd.xml" type="protected" desc="HTTP服务配置"/>
<item key="logging" value="./conf/logging.xml" type="protected" desc="日志服务配置"/>
</group>
<group id="service" desc="系统服务配置,有依赖时注意顺序,系统按顺序加载,按倒序销毁">
<item key="logging" value="org.zhiqim.kernel.logging.LogServer" type="protected" desc="日志服务"/>
<item key="orm" value="org.zhiqim.orm.ORMServer" type="protected" desc="数据库服务"/>
<item key="httpd" value="org.zhiqim.httpd.HttpServer" type="protected" desc="HTTP服务"/>
</group>
<group id="orm" desc="数据库映射服务">
<item key="dbType" value="sqlite" type="protected" desc="数据库类型,支持oracle|mysql|mssql|hsql|sqlite" />
<item key="driver" value="org.sqlite.JDBC" type="protected" desc="数据库驱动" />
<item key="url" value="jdbc:sqlite:./database/zhiqim.db" type="protected" desc="数据库Url" />
<item key="user" value="root" type="protected" desc="数据库用户名" />
<item key="pass" value="root" type="private" desc="数据库密码" />
<item key="minPoolSize" value="2" type="protected" desc="线程池最小值" />
<item key="maxPoolSize" value="10" type="protected" desc="线程池最大值" />
<item key="maxKeepTime" value="7001" type="protected" desc="每连接最大保持时长,大于该值将重建连接,单位秒" />
</group>
</zhiqim-config>