`
Franciswmf
  • 浏览: 778023 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
文章列表
public static void main(String[] args) { // String content = "安徽省合肥市高新区习友路XXXX号XX公馆58栋1108室"; // String regex = "^(.{3})(.{8})(.*)$"; // //从第4位开始,遮掩8位 // String replacement = "$1********$3"; // //脱敏 // String content2 ...
当xxx.jar在当前项目的resources目录下时,pom.xml的配置参考: <dependency> <groupId>org.xxx</groupId> <artifactId>axx3</artifactId> <version>2.8</version> <scope>system</scope> <systemPath& ...
import okhttp3.HttpUrl; import java.net.URI; import java.net.URISyntaxException; public class Demo { public static void main(String[] args) { try { //方式一: URI uri = new URI("https://api.mch.weixin.qq.com/v3/merchant/media/upload?a=1&b=0"); ...
一、微信合单支付 参考资料: 1、来了,来了,电商收付通来了 https://mp.weixin.qq.com/s/KpYT7ELq4LwnOKAoYSNfUA 2、电商收付通 https://pay.weixin.qq.com/index.php/public/public_tools/index/toolkit/toolkit_details/3001
1、官网下载es安装包:如elasticsearch-7.10.2-windows-x86_64.zip 解压后进入bin目录:运行elasticsearch.bat即可,默认的端口:9200 访问:http://localhost:9200/ 2、可视化工具elasticsearch-head 通过elasticsearch-head可以很方便的查看ES的运行状态和 ...
java异步方式(结合@Async和CompletableFuture)处理批量任务执行和回滚(只回滚执行失败的批次,执行成功的批次不回滚) @Autowired @Qualifier(value = "customThreadPoolTaskExecutor") private ThreadPoolTaskExecutor customThreadPoolTaskExecutor; @Autowired private Environment environment; @Autowired priva ...
基于nginx配置负载均衡 参考 - - Nginx + Spring Boot 实现负载均衡 https://mp.weixin.qq.com/s/T_SyKPfC4JkNbS0Q25M8FQ
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no" /> <meta http-equiv="Content-Type" content=" ...
在IIS服务器上安装SSL证书 效果:将阿里云服务器上IIS服务的调用方式由http://35.88.88.88:8888/api/checkUrl改为https://app.demo.com/api/checkUrl 以下是详细操作步骤: 1、一级域名和服务器必须在同一厂家备案,以阿里云为例; 一级域名:demo.com 二级域名:app.demo.com 阿里云服务器ip: 35.88.88.88 2、登录阿里云控制台,申请SSL证书,以购买免费版SSL证书为例: 绑定域名:app.demo.com 记下主机记录:_dnsauth.app 记录值:20200413 ...
linux环境: 1、新建文件夹并复制redis.conf文件 #新建目录 mkdir /etc/redis --redis名字自定义:影响启动命令,示例:service redis start/stop #移动配置文件并重命名,名字必须是6379,同端口号 mv /usr/local/redis/redis.conf /etc/redis/6379.conf 注意:可以根据需要修改6379.conf文件 daemonize no 必须改成 daemonize yes; 2、开始编写redis自动启动脚本 方式一:创建脚本文件redis,然后复制Redis解压目录的uti ...
org.springframework.web.client.RestTemplate以GET或POST方式调用微服务接口: public String invokeService(HttpMethod httpMethod, UrlSe urlSe, String getParams, MultiValueMap<String, String> postParams, String token){ if(null == httpMethod || null==urlSe){ LOG.info(Constants.INPUT_PARAMS_ILLEGAL); ...
----【第四次工业G命】 5G+物联网; 人工智能; 基因工程; 量子科学; 核聚变; ----【长三角一体化】 ----沪苏浙皖党政主要领导齐聚第一届长三角一体化发展高层论坛 https://baijiahao.baidu.com/s?id=1634246648263754646&wfr=spider&for=pc ----长三角一体化升级!七城市迎来首张长三角地铁“通票” http://baijiahao.baidu.com/s?id=1634290571076848669 ----【人工智能】 ----人工智能创新中心揭牌,华为与合肥达成深化战略合作协议 http:// ...
1、理解JWT        JWT=json web token     JWT是为了在网络应用环境间传递声明而执行的一种基于Json的开放标准。JWT的声明一般被用来在身份提供者和服务提供者间传递被认证的用户身份信息,以便于从资源服务器获取资源。     JWT在“用户登录”上的运用:用户提供用户名和密码给认证服务器, 服务器验证用户提交信息的合法性;如果验证成功,会产生并返回一个token,用户可以使用这个token访问服务器上受保护的资源。     JWT由三部分组成:头部(Header);消息体(Payload);签名(Signature)。 token=encodedBase64( ...
1、参考博客 2、demo示例
自定义函数 1、参考博客 2、参考demo CREATE OR REPLACE FUNCTION isNumFun(str IN VARCHAR2) RETURN NUMBER IS v_str FLOAT; BEGIN IF str IS NULL THEN RETURN 0; ELSE BEGIN SELECT TO_NUMBER (str) INTO v_str FROM DUAL; EXCEPTION ...
Global site tag (gtag.js) - Google Analytics