04 2023 档案
摘要:一、docker部署elasticsearch docker run -d -p 9200:9200 -p 9300:9300 --name es -e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms128m -Xmx256m" elastics
阅读全文
摘要:/// <summary> /// 用户操作记录 /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public class OperationLogAttribute : Attrib
阅读全文
摘要:Nginx中添加配置: location / { #保留代理之前的host 包含客户端真实的域名和端口号 proxy_set_header Host $host; #保留代理之前的真实客户端ip proxy_set_header X-Real-IP $remote_addr; #这个Header和X
阅读全文
摘要:一、原理 1、获取access_token https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_access_token.html 2、获取带参二维码 https://developers.weixin.qq.
阅读全文
摘要:用微信公众平台测试账号做微信公众号开发的时候,需要配置回调地址 由于项目在本地,没有发布。url里需要一个公网可以访问的域名,以前的解决办法是使用内网穿透,本地vs启动项目后,可以通过公网地址调本地的项目接口。 现在vs2022的最新版本(17.5)新增了一个新功能:开发隧道。可以用来解决上述问题。
阅读全文
摘要:// Import necessary namespaces using System.Net.Http; using System.Text; using System.Threading.Tasks; // Define a method to send a message to the WeC
阅读全文