
备忘录
备忘记录一些日常错误、小知识和小经验,以便后查。
zhouzhiyu0622
.NET\JAVA,十年研发老兵,电子政务、电力等行业摸爬滚打
展开
-
服务器CentOs7获取文件的方式
本地window系统,服务器为Linux系统,需要两者文件互传,如上传安装包、更新包等文件到服务器或者从服务器上下载日志文件等。方式一:联网下载方式二:借助如 Xftp 等工具传输文件方式三:通过ssh工具(如Xshell)实现本地windows与Linux服务器的文件互传原创 2025-03-27 16:58:02 · 381 阅读 · 0 评论 -
CentOS7使用yum报错:Could not resolve host: mirrorlist.centos.org
CentOS7使用yum报错:Could not resolve host: mirrorlist.centos.org解决方法:步骤1、排查网络、DNS解析是否有问题:ping www.baidu.com;步骤2:下载阿里云 yum 配置文件。原创 2025-03-24 17:49:41 · 190 阅读 · 0 评论 -
创建函数报错:This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA
创建函数报错:This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA方法1:创建函数时指定一种类型,如:READS SQL DATA。方法2:启用方法创建信任机制。原创 2025-03-20 14:50:16 · 150 阅读 · 0 评论 -
【报错】‘xxx‘ not loaded because @ConditionalOnProperty (xxx)did not find property ‘endpoint‘
解决报错:Bean method 'xxx' not loaded because @ConditionalOnProperty (service.client.endpoint) did not find property 'endpoint'原创 2024-05-06 11:06:57 · 465 阅读 · 0 评论 -
安装WSL时报错:WslRegisterDistribution failed with error: 0x800701bc
解决win11系统中安装linux子系统(wsl)时的报错问题原创 2024-04-28 15:01:44 · 1840 阅读 · 3 评论 -
maven项目install报错:Failure to find cn.cc.cisp:cc-core-base:pom:1.0 in http://ip:8081/nexus/content/gro
maven项目install时出现:Failure to find cn.cc.cisp:cc-core-base:pom:1.0 in http://ip:8081/nexus/content/group...报错的解决方法。原创 2024-04-26 11:43:58 · 441 阅读 · 0 评论 -
java-MD5加密方法
【代码】java-MD5加密方法。原创 2022-09-14 11:39:42 · 164 阅读 · 0 评论 -
解决PostMethod的中文乱码
解决HttpClient的PostMethod的中文乱码问题。原创 2022-09-14 11:37:36 · 1419 阅读 · 0 评论 -
计算时间差公式
【代码】计算时间差公式。原创 2022-09-09 15:58:34 · 487 阅读 · 0 评论 -
scheduling jobs未起来
项目启动时报错信息:#### 20220512 09:33:35,324 | org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin.processFile(XMLSchedulingDataProcessorPlugin.java:324) | ERROR | Error scheduling jobs: Encountered 2 validation exceptions. org.quartz.xml.ValidationExcept原创 2022-05-12 09:58:43 · 498 阅读 · 0 评论 -
窗口之间传递数据
父窗口通过js打开子窗口:// 打开新增模板弹窗$('#add-btn').on('click', function () { Util.openLayer({ areaSize: ['980px', '661px'], href: 'layer_superviseadd.html' }); });子窗口通过postMessage()方法回传数据:var parentWindow = window.parent;paren原创 2022-04-26 17:40:16 · 231 阅读 · 0 评论 -
JS生成UUID
1、未引入时间戳//用于生成uuidfunction S4() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);}function generateUUID() { return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());}2、引入时间戳function gen原创 2022-03-11 09:38:14 · 430 阅读 · 0 评论 -
备忘录-常用转义字符
符号 转义字符 说明 " " 双引号 & & < < > > « &laq...原创 2022-01-18 15:29:23 · 351 阅读 · 0 评论 -
备忘录-开启和关闭druid日志监控
项目当中为了监控慢sql,开启了druid的监控功能:druid的监控类型配置主要如下:实际项目中的开关:epointframe.properties中配置:disableDruidFilter=false,false|开启;ture|关闭如果无此参数,直接添加,框架默认是未配置该参数的,且未配置时该值默认为true。...原创 2022-01-11 16:33:35 · 4104 阅读 · 0 评论