知启蒙大文件上传组件,该组件实现大文件分片上传,包含服务端接收碎片上传和管理功能,以及前端UI的进度条、上传速度等界面。同时还支持按文件内容MD5码、相同文件名称比对秒传等功能,是业务系统应用不可缺少的组件之一。

森中灵 最后提交于1月前 8.0.5版本,删除encoding和cache字段,大部分没用上,整理访问类
zhiqim.xml4KB
<?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="知启蒙大文件上传" type="protected" desc="系统名称"/>
        <item key="version" value="V8.0.1" type="protected" desc="系统版本"/>
        <item key="port" value="50080" type="protected" desc="系统监听端口,用于启动监听和命令关闭工程"/>
        <item key="home" value="d:/Java/jdk1.8.0_291/" type="protected" desc="JDK根目录,路径符统一顺斜杠"/>
        <item key="process" value="zhiqim" type="protected" desc="使用的进程名,MAC系统下该配置无效"/>
        <item key="args" value="-server -Xms64m -Xmx256m" type="protected" desc="JVM参数"/>
    </group>

    <group id="config" desc="系统其他配置文件,./开头表示工程相对路径下,绝对路径使用/或d:/等(Windows也使用顺斜杠作路径)">
        <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="WEB服务"/>
    </group>

    <group id="orm" desc="SQLite数据库连接方式">
        <item key="dbType" value="sqlite" type="protected" desc="数据库类型,支持oracle|mysql|mssql|postpresql|sqlite"/>
        <item key="driver" value="org.sqlite.JDBC" type="protected" desc="数据库驱动"/>
        <item key="url" value="jdbc:sqlite:./database/zhiqim_upload_large.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="7000" type="protected" desc="每连接最大保持时长,大于该值将重建连接,单位秒"/>
    </group>

    <group id="httpd" desc="WEB服务器">
        <item key="context" value="httpd.root, httpd.admin" type="protected" desc="必须,WEB服务下包括的上下文环境表,多个用逗号隔开"/>
        <item key="scheme" value="HTTP" type="protected" desc="HTTP或HTTPS协议"/>
        <item key="port" value="80" type="protected" desc="监听端口"/>
        <item key="minPoolSize" value="5" type="protected" desc="HTTP处理线程池最小值"/>
        <item key="maxPoolSize" value="10" type="protected" desc="HTTP处理线程池最大值"/>
    </group>
        
    <group id="httpd.root" desc="WEB服务根上下文环境">
        <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="欢迎页"/>
        <item key="upload.large.rootDir" value="./uploadlarge" type="protected" desc="欢迎页"/>
    </group>
    
    <group id="httpd.admin" desc="WEB服务根上下文环境">
        <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="upload.large.rootDir" value="./uploadlarge" type="protected" desc="大文件上传根目录" />
    </group>
    
</zhiqim-config>