logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Instance X is not bound to a Session; attribute refresh operation cannot proceed

在对instance对象执行完赋值操作后,没有session.add()然后commit了,后续又引用了这个更新后得对象。

#python
Nginx 配置https 自动续期

#安装 acme.shcurl https://get.acme.sh | sh#确保 nginx安装了 http_v2_modulenginx源码目录下./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_modulema...

python aes加解密 ecb模式 加密 报错ValueError: Data must be aligned to block boundary in ECB mode

from Crypto.Util.Padding import pad, unpadfrom Crypto.Cipher import AESBLOCK_SIZE = 32 # Byteskey = 'abcdefghijklmnop'cipher = AES.new(key.encode('utf8'), AES.MODE_ECB)msg = cipher.encrypt(pad(...

rocketmq No route info of this topic 问题排查

autoCreateTopicEnable = true#有三个值:SYNC_MASTER,ASYNC_MASTER,SLAVE;同步和异步表示Master和Slave之间同步数据的机制;#brokerRole = SYNC_MASTER

文章图片
#rocketmq
postman pre-req 和 tests

通过登录接口获取token,赋值到当前collection的环境变量中使用方式比如在headesr中给一个Authorization中使用tokenpre-req 和 tests 中使用的语法是js的语法和postman的专有语法,输入框右边有一些示例如果要使用console.log函数,在postman的console窗口可以查看,...

#postman#测试工具#前端
postman 添加公共/全局的header

在collection下选择pre-request script选项卡,获取局部的token变量,添加到header中,可以推广到其他对请求前的所有操作,https://learning.postman.com/docs/writing-scripts/script-references/postman-sandbox-api-reference/#scripting-with-request-d

#postman#测试工具
nginx 利用497错误来从http跳转到https

参考https://www.cnblogs.com/nuccch/p/7681592.html例子server {listen 80;listen 443 ssl;server_name domain.com;ssl on;ssl_certificate/etc/nginx/ssl/domain.com.crt;ssl_c...

防火墙 iptables 禁止某个域名访问

-I OUTPUT -p tcp -m string --string "qq.com" --algo bm -j DROP-I OUTPUT -p udp -m string --string "qq.com" --algo kmp -j DROP禁止 包含qq.com的域名访问

IJ 快捷键

私有属性快速生成get set 方法alt+insert

    共 28 条
  • 1
  • 2
  • 3
  • 请选择