摘要:
导致原因为,springboot内置log包冲突l 排除springboot中默认logback日志 configurations { compile.exclude module: 'spring-boot-starter-logging' compile.exclude module: 'com 阅读全文
摘要:
通过临时表创建索引用 空间换时间避免频繁读取原表信息 /*正常写法*/ DELETE from activity where id not in ( SELECT id from activity_data); /*优化后写法*/ DELETE from activity where id not 阅读全文
摘要:
解决乱码问题response.setHeader("Content-Type","image/JPG"); QrCodeController package com.lw.project.wx.controller; import com.lw.common.utils.QRCodeUtil; im 阅读全文
摘要:
添加一个remote,设置远程host地址和端口,把jvm参数在启动jar是加入。 启动remote 阅读全文
摘要:
1.开启服务器443端口(云服务器还需要加入安全策略)。 2.修改nginx配置文件 #http访问server server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/host.a 阅读全文
摘要:
第一步查看本机: 设置如下: 然后登录linux虚拟机配置ip: ip addr 查看网卡 cd /etc/sysconfig/network-scripts/ vim ifcfg-ens32修改如下内容 虚拟机静态ip:IPADDR=192.168.17.131网关(与上面主机查看到的vm8的ip 阅读全文
摘要:
增加一个请求头管理器,添加content-type:application/json。并将请求修改为json数据传输试试。 参考:https://zhidao.baidu.com/question/1644957725975214740.html 阅读全文
摘要:
1.打开Dns检测|Dns查询 - 站长工具: http://tool.chinaz.com/dns?type=1&host=github.com&ip= 2.在检测输入栏中输入http://github.com官网 3.把检测列表里的TTL值最小的IP输入到hosts里,并对应写上github官网 阅读全文
摘要:
开启防火墙mysql 3306端口的外部访问(如果防火墙开启状态): 1 firewall-cmd --zone=public --add-port=3306/tcp --permanent 2 firewall-cmd --reload 阅读全文