在使用若依前后端分离版本时候,添加自定义的定时任务,提示目标字符串不在白名单内。如下图:
nginx 配置文件增加以下代码:
try_files $uri $uri/ /index.html;
nginx 配置如下:
server_name domain.com; ... location /ws/ { proxy_pass http://127.0.0.1:8080/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }
执行以下命令
yum install 'dnf-command(config-manager)'
yum config-manager --set-enabled PowerTools
1. Java 目录结构
src | - main | - | - java | - | - | - com (包名) | - | - | - | - | - xx (包名) | - | - | - | - | - | - module (包名) | - | - | - | - | - | - | - controller (控制层, 接收和处理用户请求) | - | - | - | - | - | - | - domain (专门维护数据库字段的) | - | - | - | - | - | - | - dto (输入层, 只能接收已维护的字段) | - | - | - | - | - | - | - vo (输出层, 只能输出已维护的字段) | - | - | - | - | - | - | - mapper (写操作数据库方法接口用的, 关联resources.mapper 文件夹) | - | - | - | - | - | - | - service (接口类) | - | - | - | - | - | - | - | - impl (接口实现, 逻辑在这里写) | - | - resources | - | - | - mapper | - | - | - | - *.xml (写SQL语句操作数据库用的) | - | - | - application.yml (配置文件) target (用于存放编译生成的类文件、资源文件和构建后的包文件等)
1. 如下VBA脚本将c1单元格内图片url链接在单元C1内把图片显示出来
Sub Test() Dim Pic As Picture Application.ScreenUpdating = False With ActiveSheet.Range("C1") Set Pic = .Parent.Pictures.Insert(.Value) With .Offset(, -1) Pic.Top = .Top Pic.Left = .Left Pic.Height = .Height Pic.Width = .Width End With End With Application.ScreenUpdating = True End Sub
检查nginx的错误日志,基本常见的有以下几种原因造成的。
1. 反向代理会根据转发数据大小,若过大会自动使用upstream
2. 代理的时候若不想请求头发生变化可以做如下设置
proxy_set_header Host $host:$server_port;
[think\exception\ErrorException]
PDO::prepare(): MySQL server has gone away
解决方案:修改数据库配置 database.php 文件,将 break_reconnect 参数设置为 true。断线重连。
'break_reconnect' => true,
[think\process\exception\Timeout]
The process ""/php" think queue:work --queue="aa" --delay=0 --memory=128 --sleep=3 --tries=0" exceeded the timeout of 60 seconds.
解决方案:问题在 think\queue\command\Listen 的 configure() 方法中,手动将这个 timeout 改了,问题就解决了。