|
@@ -0,0 +1,319 @@
|
|
|
|
|
+package base;
|
|
|
|
|
+
|
|
|
|
|
+import java.time.Duration;
|
|
|
|
|
+import java.util.HashMap;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
+
|
|
|
|
|
+import ss.WebC;
|
|
|
|
|
+import ss.db.DbC;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// 由项目去先改,不能使用 final。Lin
|
|
|
|
|
+public class SsC {
|
|
|
|
|
+
|
|
|
|
|
+/// 再从 ObjC.ROW_maxNum 拆开,独立控制。Lin
|
|
|
|
|
+ // 最大读入行数
|
|
|
|
|
+ public static final int CB_maxNum = 150; // 码本。Lin
|
|
|
|
|
+ public static final int TASK_maxNum = 50; // 待办。Lin
|
|
|
|
|
+ public static final int URGE_maxNum = 50; // 催办。Lin
|
|
|
|
|
+ public static final int DDP_maxNum = 150; // ddp。Lin
|
|
|
|
|
+///
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // === Sys
|
|
|
|
|
+/// 测试时,可以通过 SerCfg.jsp 切换项目。生产时,要改 APP_name 和 APP_desc,并加 final。Lin
|
|
|
|
|
+/* 德成学校。Lin */
|
|
|
|
|
+ public static String APP_name = "dcxx"; // 应用名,要改为 "dcxx"(德成学校)。Lin
|
|
|
|
|
+ public static String APP_desc = "德成学校";
|
|
|
|
|
+/* */
|
|
|
|
|
+/* 沙溪理工。Lin
|
|
|
|
|
+ public static String APP_name = "sxlg"; // 应用名,要改为 "dcxx"(德成学校)。Lin
|
|
|
|
|
+ public static String APP_desc = "沙溪理工";
|
|
|
|
|
+*/
|
|
|
|
|
+/* PMS。Lin
|
|
|
|
|
+ public static String APP_name = "pms"; // 应用名,要改为 "dcxx"(德成学校)。Lin
|
|
|
|
|
+ public static String APP_desc = "生产管理系统";
|
|
|
|
|
+*/
|
|
|
|
|
+///
|
|
|
|
|
+ public static final String APP_prfx = "prj_"; // 再增加,标识项目所在的子目录 -- 支持 IDEA 容纳多个业务项目 -- 在原 \cfg\biz\bj\ 下增加子目录 prj_<项目名>\。Lin
|
|
|
|
|
+
|
|
|
|
|
+// public static boolean APP_inDebug = true; // 调试中 // 移到 SsApp。Lin
|
|
|
|
|
+ public static final int APP_type = 1; // 版本:1=develop,2=product
|
|
|
|
|
+ public static final int APP_devType = 1; // develop
|
|
|
|
|
+ public static final int APP_prodType = 2; // product
|
|
|
|
|
+
|
|
|
|
|
+ public static final boolean APP_allowBrowser = true;
|
|
|
|
|
+
|
|
|
|
|
+ public static final int TASK_wechatType = 2; // 待办里的微信类型:1 = wecome(企业微信,使用令牌),2 = wechatp(小程序,使用用户登录) -- 公众没有待办。Lin
|
|
|
|
|
+ public static final int WECHAT_wecomeType = 1; // 企业微信。Lin
|
|
|
|
|
+ public static final int WECHAT_wechatpType = 2; // 小程序。Lin
|
|
|
|
|
+
|
|
|
|
|
+ // 解决动态外网 IP 的问题。Lin
|
|
|
|
|
+/* 107 环境。Lin
|
|
|
|
|
+ public static String WECHAT_apiBaseUrl = "http://120.78.73.142/:8888/";
|
|
|
|
|
+ public static String WECOM_apiBaseUrl = "https://qyapi.weixin.qq.com/";
|
|
|
|
|
+*/
|
|
|
|
|
+/* 用户环境 -- 固定外网 IP。Lin */
|
|
|
|
|
+ public static final String WECHAT_apiBaseUrl = "https://api.weixin.qq.com/";
|
|
|
|
|
+ public static final String WECOM_apiBaseUrl = "https://qyapi.weixin.qq.com/";
|
|
|
|
|
+/* */
|
|
|
|
|
+
|
|
|
|
|
+ // 默认窗口大小
|
|
|
|
|
+ public static final int APP_defWidth = 1200;
|
|
|
|
|
+ public static final int APP_defHeight = 800;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 登录 Login
|
|
|
|
|
+ public static final boolean USER_isForceChgPwd = true; // 使用初始密码 或 密码强度不够。Lin
|
|
|
|
|
+ public static final int LOGIN_maxNum = 10; // 登录失败次数
|
|
|
|
|
+ public static final boolean LOGIN_allowDup = true; // 允许重复登录
|
|
|
|
|
+ public static final boolean LOGIN_isAuto = false; // 自动登录
|
|
|
|
|
+
|
|
|
|
|
+ public static final int LOGIN_defIdleDu = 15; // 默认空闲时长
|
|
|
|
|
+
|
|
|
|
|
+// public static boolean IS_CHECK_CAPTCHA = true; // "检查验证码" // 登录用的是 CAPTCHA_enable。Lin
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 密码 Password
|
|
|
|
|
+ public static final int PWD_minLen = 6;
|
|
|
|
|
+ public static final int PWD_maxLen = 16;
|
|
|
|
|
+ public static final boolean PWD_isForceLetter = false;
|
|
|
|
|
+ public static final boolean PWD_isForceUpperAndLower = false;
|
|
|
|
|
+ public static final boolean PWD_isForceNum = false;
|
|
|
|
|
+
|
|
|
|
|
+ // 密码要求描述,来自 Security.load(WebApp app, Document doc) 之 Password 部分。Lin
|
|
|
|
|
+ // 根据上面的密码常量设置做相应的修改
|
|
|
|
|
+ public static final String PWD_desc = "密码不能包含账号,最小6个字符,最大16个字符,必须含有和字母和大小写字母和数字";
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 密码 cry(crypto)
|
|
|
|
|
+ public static final String CRY_instanceParm = "DES/CBC/PKCS5Padding"; // "算法/模式/填充模式"。Lin
|
|
|
|
|
+ public static final String CRY_alg = "DES"; // 算法(algorithm):DES=56,AES=128,DES3=168。Lin
|
|
|
|
|
+ public static final String CRY_secretKey = "smplspec"; // 密匙,长度:DES=8,AES=16,DES3=24。Lin
|
|
|
|
|
+ public static final String CRY_vecKey = "75395146"; // 向量,长度:DES=8,AES=16,DES3=8。Lin
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 数字证书(dcert)
|
|
|
|
|
+ public static final String DCERT_keyStorePwd = "111"; // KeyStore。Lin
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 验证码(CAPTCHA)
|
|
|
|
|
+ public static final boolean CAPTCHA_pcEnable = false; // PC
|
|
|
|
|
+ public static final boolean CAPTCHA_mdEnable = true; // MD
|
|
|
|
|
+ public static final boolean CAPTCHA_cnEnable = false; // 中文
|
|
|
|
|
+ public static final boolean CAPTCHA_mdCnEnable = false;
|
|
|
|
|
+
|
|
|
|
|
+ public static final int CAPTCHA_pcLen = 5;
|
|
|
|
|
+ public static final int CAPTCHA_mdLen = 5;
|
|
|
|
|
+
|
|
|
|
|
+ public static final boolean CAPTCHA_allowConfuse = true; // "如果为真,拼音就有干扰元素,默认为真"
|
|
|
|
|
+
|
|
|
|
|
+ public static final String CAPTCHA_MODE = "en";
|
|
|
|
|
+ public static final int CAPTCHA_WIDTH = 30;
|
|
|
|
|
+ public static final int CAPTCHA_HEIGHT = 30;
|
|
|
|
|
+ public static final String CAPTCHA_FONT = "宋体";
|
|
|
|
|
+ public static final String CAPTCHA_FONT_TYPE = "italic";
|
|
|
|
|
+
|
|
|
|
|
+ // 使用到Algerian字体,系统里没有的话需要安装字体,字体只显示大写,去掉了1,0,i,o几个容易混淆的字符
|
|
|
|
|
+ public static final String CAPTCHA_dict = "23456789ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz";
|
|
|
|
|
+ public static final String CAPTCHA_cnDict =
|
|
|
|
|
+ "的一了是我不在人们有来他这上着个地到大里说就去子得也和那要下看天时过出小么起你都把好还多没为又可家学只以主会样年想生同老中十从"+
|
|
|
|
|
+ "自面前头道它后然走很像见两用她国动进成回什边作对开而己些现山民候经发工向事命给长水几义三声于高手知理眼志点心战二问但身方实吃做"+
|
|
|
|
|
+ "叫当住听革打呢真全才四已所敌之最光产情路分总条白话东席次亲如被花口放儿常气五第使写军吧文运再果怎定许快明行因别飞外树物活部门无"+
|
|
|
|
|
+ "往船望新带队先力完却站代员机更九您每风级跟笑啊孩万少直意夜比阶连车重便斗马哪化太指变社似士者干石满日决百原拿群究各六本思解立河"+
|
|
|
|
|
+ "村八难早论吗根共让相研今其书坐接应关信觉步反处记将千找争领或师结块跑谁草越字加脚紧爱等习阵怕月青半火法题建赶位唱海七女任件感准"+
|
|
|
|
|
+ "张团屋离色脸片科倒睛利世刚且由送切星导晚表够整认响雪流未场该并底深刻平伟忙提确近亮轻讲农古黑告界拉名呀土清阳照办史改历转画造嘴"+
|
|
|
|
|
+ "此治北必服雨穿内识验传业菜爬睡兴形量咱观苦体众通冲合破友度术饭公旁房极南枪读沙岁线野坚空收算至政城劳落钱特围弟胜教热展包歌类渐"+
|
|
|
|
|
+ "强数乡呼性音答哥际旧神座章帮啦受系令跳非何牛取入岸敢掉忽种装顶急林停息句区衣般报叶压慢叔背细";
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 全文检索 FTS(Full-Text Search)
|
|
|
|
|
+/* 去掉,用新的定义。Lin
|
|
|
|
|
+ public static String FTS_IP = "127.0.0.1"; // Elasticsearch IP 地址
|
|
|
|
|
+ public static int FTS_PORT = 9300; // Elasticsearch 端口
|
|
|
|
|
+ public static String FTS_CLUSTER_NAME = "my-application";// Elasticsearch 集群名
|
|
|
|
|
+*/
|
|
|
|
|
+
|
|
|
|
|
+/* 本机。Lin
|
|
|
|
|
+ public static final String FTS_node = "127.0.0.1:9200"; // 可以写多个 node,用 "," 分隔。Lin
|
|
|
|
|
+ public static final String FTS_user = "elastic";
|
|
|
|
|
+ public static final String FTS_pwd = "KA=MAwOxB2ExTKlRWlGj";
|
|
|
|
|
+ public static final String FTS_prot = "https";
|
|
|
|
|
+ // 数字证书:CertificateFactory = "X.509",KeyStore = "pkcs12"
|
|
|
|
|
+ public static final String FTS_dcertFileName = "C:/elasticsearch-8.4.3/config/certs/elastic-stack-ca.p12"; // /http_ca.crt。Lin
|
|
|
|
|
+ public static final String FTS_dcertPwd = "111"; // 再增加,改用 PKCS#12 -- 可以带密码。Lin
|
|
|
|
|
+ public static final String FTS_javaTrustStoreFileName = "C:/elasticsearch-8.4.3/config/certs/JavaTrustStore.p12";
|
|
|
|
|
+ public static final String FTS_javaTrustStorePwd = "abcd1234";
|
|
|
|
|
+*/
|
|
|
|
|
+/* 107。Lin
|
|
|
|
|
+ public static final String FTS_node = "10.0.3.107:9200"; // 可以写多个 node,用 "," 分隔。Lin
|
|
|
|
|
+ public static final String FTS_user = "elastic";
|
|
|
|
|
+ public static final String FTS_pwd = "8hkvxstx";
|
|
|
|
|
+ public static final String FTS_prot = "https";
|
|
|
|
|
+ // 数字证书:CertificateFactory = "X.509",KeyStore = "pkcs12"
|
|
|
|
|
+ public static final String FTS_dcertFileName = "C:/107/config/certs/elastic-stack-ca.p12"; // /http_ca.crt。Lin
|
|
|
|
|
+ public static final String FTS_dcertPwd = "111"; // 再增加,改用 PKCS#12 -- 可以带密码。Lin
|
|
|
|
|
+ public static final String FTS_javaTrustStoreFileName = "C:/107/config/certs/elastic-stack-ca.p12";
|
|
|
|
|
+ public static final String FTS_javaTrustStorePwd = "111";
|
|
|
|
|
+*/
|
|
|
|
|
+/* 148.Lin
|
|
|
|
|
+ public static final String FTS_node = "10.1.1.148:9200"; // 可以写多个 node,用 "," 分隔。Lin
|
|
|
|
|
+ public static final String FTS_user = "elastic";
|
|
|
|
|
+ public static final String FTS_pwd = "8hkvxstx";
|
|
|
|
|
+ public static final String FTS_prot = "http";
|
|
|
|
|
+ // 数字证书:CertificateFactory = "X.509",KeyStore = "pkcs12"
|
|
|
|
|
+ public static final String FTS_dcertFileName = "C:/107/config/certs/elastic-stack-ca.p12"; // /http_ca.crt。Lin
|
|
|
|
|
+ public static final String FTS_dcertPwd = "111"; // 再增加,改用 PKCS#12 -- 可以带密码。Lin
|
|
|
|
|
+ public static final String FTS_javaTrustStoreFileName = "C:/107/config/certs/elastic-stack-ca.p12";
|
|
|
|
|
+ public static final String FTS_javaTrustStorePwd = "111";
|
|
|
|
|
+*/
|
|
|
|
|
+// 222。Lin
|
|
|
|
|
+ public static final String FTS_node = "docker-cluster:9200"; // 可以写多个 node,用 "," 分隔。Lin
|
|
|
|
|
+ public static final String FTS_user = "elastic";
|
|
|
|
|
+ public static final String FTS_pwd = "8hkvxstx";
|
|
|
|
|
+ public static final String FTS_prot = "https";
|
|
|
|
|
+ // 数字证书:CertificateFactory = "X.509",KeyStore = "pkcs12"
|
|
|
|
|
+ public static final String FTS_dcertFileName = "/usr/local/tomcat/conf/dcert/elastic-stack-ca.p12"; // /http_ca.crt。Lin
|
|
|
|
|
+// public static final String FTS_dcertFileName = "C:/107/config/certs/elastic-stack-ca.p12"; // /http_ca.crt。Lin
|
|
|
|
|
+ public static final String FTS_dcertPwd = "111"; // 再增加,改用 PKCS#12 -- 可以带密码。Lin
|
|
|
|
|
+ public static final String FTS_javaTrustStoreFileName = "/usr/local/tomcat/conf/dcert/elastic-stack-ca.p12";
|
|
|
|
|
+// public static final String FTS_javaTrustStoreFileName = "C:/107/config/certs/elastic-stack-ca.p12";
|
|
|
|
|
+ public static final String FTS_javaTrustStorePwd = "111";
|
|
|
|
|
+/* 222。Lin */
|
|
|
|
|
+ /*public static final String FTS_node = "10.1.1.211:9200"; // 可以写多个 node,用 "," 分隔。Lin
|
|
|
|
|
+ public static final String FTS_user = "elastic";
|
|
|
|
|
+ public static final String FTS_pwd = "8hkvxstx";
|
|
|
|
|
+ public static final String FTS_prot = "https";
|
|
|
|
|
+ // 数字证书:CertificateFactory = "X.509",KeyStore = "pkcs12"
|
|
|
|
|
+// public static String FTS_dcertFileName = "/usr/local/tomcat/conf/dcert/elastic-stack-ca.p12"; // /http_ca.crt。Lin
|
|
|
|
|
+ public static final String FTS_dcertFileName = "C:/107/config/certs/elastic-stack-ca.p12"; // /http_ca.crt。Lin
|
|
|
|
|
+ public static final String FTS_dcertPwd = "111"; // 再增加,改用 PKCS#12 -- 可以带密码。Lin
|
|
|
|
|
+// public static String FTS_javaTrustStoreFileName = "/usr/local/tomcat/conf/dcert/elastic-stack-ca.p12";
|
|
|
|
|
+ public static final String FTS_javaTrustStoreFileName = "C:/107/config/certs/elastic-stack-ca.p12";
|
|
|
|
|
+ public static final String FTS_javaTrustStorePwd = "111";*/
|
|
|
|
|
+/* */
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // HTTP 连接
|
|
|
|
|
+ public static final int FTS_connTimeout = 5000; // connetionTimeout。Lin
|
|
|
|
|
+ public static final int FTS_socketTimeout = 30000; // socketTimeout。Lin
|
|
|
|
|
+ public static final int FTS_reqTimeout = 30000; // connectionRequestTimout。Lin
|
|
|
|
|
+
|
|
|
|
|
+ // Pool
|
|
|
|
|
+ public static final Duration FTS_poolTimeout = Duration.ofMillis(30000); // maxWait。Lin
|
|
|
|
|
+ public static final int FTS_poolSize = 2; // maxTotal。Lin
|
|
|
|
|
+ public static final int FTS_maxIdle = 2;
|
|
|
|
|
+ public static final int FTS_minIdle = 1;
|
|
|
|
|
+ public static final boolean FTS_makeChk = true; // testOnCreate。Lin
|
|
|
|
|
+ public static final boolean FTS_borrowChk = false; // testOnBorrow。Lin
|
|
|
|
|
+ public static final boolean FTS_retChk = false; // testOnReturn。Lin
|
|
|
|
|
+
|
|
|
|
|
+ // 分词器
|
|
|
|
|
+ public static final String FTS_analyzer = "ik_max_word";
|
|
|
|
|
+ public static final String FTS_searchAnalyzer = "ik_syn_smart";
|
|
|
|
|
+ public static final String FTS_xmAnalyzer = "ik_max_word"; // 姓名。Lin
|
|
|
|
|
+ public static final String FTS_xmSearchAnalyzer = "ik_syn_smart"; // 姓名。Lin
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // soket
|
|
|
|
|
+/* 再去掉,没用到了 -- 改用 webSocket,去掉 ss.skt.* 了。Lin
|
|
|
|
|
+ public static final boolean SKT_keepAlive = true; // 保持连接。Lin
|
|
|
|
|
+ public static final boolean SKT_reuseAddr = true; // 端口在关闭后能够快速地被再次使用,而不是等待操作系统释放该端口。Lin
|
|
|
|
|
+ public static final int SKT_soLinger = 0; // 连接关闭时的延迟,毫秒。Lin
|
|
|
|
|
+ public static final int SKT_idleTime = 30; // 超时时触发空闲事件,毫秒。Lin
|
|
|
|
|
+ public static final int SKT_rdBufSize = 10240;
|
|
|
|
|
+ public static final int SKT_recBufSize = 10240;
|
|
|
|
|
+ public static final int SKT_sendBufSize = 10240;
|
|
|
|
|
+ public static String SKT_ip = "127.0.0.1";// 监听的IP地址
|
|
|
|
|
+ public static int SKT_port = 9988; // 烽火台端口
|
|
|
|
|
+*/
|
|
|
|
|
+
|
|
|
|
|
+ // 烽火台(BTC: Beacon Tower Client)
|
|
|
|
|
+ public static final boolean BTC_allowExit = false; // 允许烽火台退出
|
|
|
|
|
+
|
|
|
|
|
+ // 线上会议(NM: Net Meeting)
|
|
|
|
|
+ public static final String NM_sysRoom = "系统消息";
|
|
|
|
|
+ public static final String NM_sysAlias = "系统";
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // 内容安全策略 CSP(Content Security Policy)
|
|
|
|
|
+ public static final String csp =
|
|
|
|
|
+/* 再改,支持读卡器 -- 需要使用本机的 webSocket。Lin
|
|
|
|
|
+ "default-src 'self' 'unsafe-eval' 'unsafe-inline' http://127.0.0.1:* http://localhost:*;"
|
|
|
|
|
+ + " style-src 'self' 'unsafe-inline';"
|
|
|
|
|
+ + " media-src *;"
|
|
|
|
|
+ + " img-src 'self' data: blob:;";
|
|
|
|
|
+*/
|
|
|
|
|
+ "default-src 'self' 'unsafe-eval' 'unsafe-inline'"
|
|
|
|
|
+ + " http://127.0.0.1:* http://localhost:* https://127.0.0.1:* https://localhost:*" //补全http https的跨域本地访问 Ben(20260317)
|
|
|
|
|
+ + " ws://127.0.0.1:* wss://127.0.0.1:* ws://localhost:* wss://localhost:* " //增加允许websocket的跨域本地访问 Ben(20260317)
|
|
|
|
|
+ + " https://662993rq13tg.vicp.fun wss://662993rq13tg.vicp.fun; "
|
|
|
|
|
+ + " style-src 'self' 'unsafe-inline';"
|
|
|
|
|
+ + " media-src *;"
|
|
|
|
|
+ + " img-src 'self' data: blob:;";
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // FTP
|
|
|
|
|
+ public static final String FTP_PATH_LINUX = "/var/ftp/pub"; // FTP 路径
|
|
|
|
|
+ public static final String FTP_PATH_WINDOWS = "E:/ftp";
|
|
|
|
|
+
|
|
|
|
|
+ // 来自 WDCore_pms_product:common.MimeUtils。Lin
|
|
|
|
|
+ // 只支持系统用到的
|
|
|
|
|
+/* 再改,改用 Map.of(。Lin
|
|
|
|
|
+ public static final Map<String, String> mimeTypeMap = new HashMap<>();
|
|
|
|
|
+ static {
|
|
|
|
|
+ mimeTypeMap.put("*", "application/octet-stream");
|
|
|
|
|
+
|
|
|
|
|
+ mimeTypeMap.put("jpeg", "image/jpeg");
|
|
|
|
|
+ mimeTypeMap.put("jpg", "image/jpeg");
|
|
|
|
|
+ mimeTypeMap.put("png", "image/png");
|
|
|
|
|
+ }
|
|
|
|
|
+*/
|
|
|
|
|
+ public static final Map<String, String> mimeTypeMap = Map.of(
|
|
|
|
|
+ "*", "application/octet-stream",
|
|
|
|
|
+ "jpeg", "image/jpeg",
|
|
|
|
|
+ "jpg", "image/jpeg",
|
|
|
|
|
+ "png", "image/png");
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // CMS
|
|
|
|
|
+ public static final String OFF_LINUX = "soffice"; // Libre Office 执行程序
|
|
|
|
|
+ public static final String OFF_WINDOWS = "C:/Program Files (x86)/LibreOffice 5/program/soffice.exe";
|
|
|
|
|
+
|
|
|
|
|
+ // 通知推送:np(notification push)
|
|
|
|
|
+ public static final String NP_appId = ""; // GeTui 应用ID
|
|
|
|
|
+ public static final String NP_appKey = ""; // GeTui 应用Key(SDK 与服务器端通过 Appkey 互相识别)
|
|
|
|
|
+ public static final String NP_appSecret = ""; // GeTui AppSecret
|
|
|
|
|
+ public static final String NP_masterSecret = ""; // GeTui 服务端API鉴权码
|
|
|
|
|
+
|
|
|
|
|
+ // NTP
|
|
|
|
|
+ public static final String[] NTP_SERVER_ARRAY = { "ntp.api.bz", "ntp.ntsc.ac.cn", "cn.pool.ntp.org", "ntp1.aliyun.com" };
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// === 数据库(DB)
|
|
|
|
|
+
|
|
|
|
|
+ public static final String DB_jndi = "jdbc/dc"; // 主JDNI
|
|
|
|
|
+
|
|
|
|
|
+ public static final int DB_type = DbC.DB_oracleType; // 数据库类型
|
|
|
|
|
+ public static final int DB_connType = DbC.CONN_jndiType; // 连接方式
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// === 应用服务器(AS)
|
|
|
|
|
+
|
|
|
|
|
+ public static final int AS_type = WebC.AS_tomcatType; // 应用服务器类型
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// === SSDev
|
|
|
|
|
+ //接受服务远程调用的端口
|
|
|
|
|
+ public static final int DEV_rmiPort = 1080;
|
|
|
|
|
+ public static final int DEV_httpPort = 80;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// === 业务
|
|
|
|
|
+
|
|
|
|
|
+ // Help
|
|
|
|
|
+ public static final boolean APP_allowAddHelp = false; // 增加帮助
|
|
|
|
|
+
|
|
|
|
|
+ public static final String ORG_headDesc = "校领导";
|
|
|
|
|
+
|
|
|
|
|
+}
|