摘要:
推荐使用科大的注册服务来提升拉取依赖的速度,地址:https://mirrors.ustc.edu.cn/help/crates.io-index.html 1.部分依赖镜像支持【也就是添加一个镜像地址,在拉取依赖的时候指定从哪个镜像地址获取】 首先,cargo的配置文件地址位于系统的用户目录下的c 阅读全文
摘要:
1.慢sql查询。 select * from information_schema.processlist where command not in ('Sleep') and user not in ('mydba','event_scheduler','repl','binlogbak','s 阅读全文
摘要:
原文地址:https://www.cnblogs.com/uqing/p/10194471.html 主要原因:maven 打包时候,把二进制文件给损坏了,maven 打包时会用utf-8编码读取文件。所以遇到打包二进制文件,就会破坏文件内容,导致无法使用。打包二进制文件时,无效编码会自动替换成ef 阅读全文
摘要:
1.生成相关证书 1.下载 mkcert 【可以使用其他的生成工具替代】 https://github.com/FiloSottile/mkcert 2.生成根证书并写入到系统 mkcert-v1.4.4-windows-amd64.exe -install 3.生成网站证书 mkcert-v1.4 阅读全文
摘要:
1.使用Map的形式 ES5 var queryString = Object.keys(params).map(function(key) { return key + '=' + params[key] }).join('&'); ES6 let queryString = Object.key 阅读全文
摘要:
function getRequestParams(){var params = {}; var href = location.href; var index = href.indexOf('?'); if(index !== -1){ href = href.substring(index + 阅读全文
摘要:
使用JSR 356 API编写WebSocket应用,借鉴地址:https://www.baeldung.com/java-websockets 1.添加依赖 <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.webs 阅读全文
摘要:
本文续接上文 基于Java的WebService服务端 ⒈访问服务端的暴露地址,如下图,下载相关服务的WSDL文件,用于生成相关的客户端代码。 ⒉将服务的WSDL文件拷贝到项目的静态目录中。 ⒊在pom文件中添加相关依赖 <?xml version="1.0" encoding="UTF-8"?> 阅读全文
摘要:
⒈引入pom相关依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta 阅读全文
摘要:
⒈定义一个事件,继承 ApplicationEvent 接口。 1 package cn.coreqi.eventdemo.event; 2 3 import org.springframework.context.ApplicationEvent; 4 5 public class Project 阅读全文