LMLPHP后院

OpenResty Lua Redis 加速接口响应

t /srv/www/may/lua; index index.html index.php; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pa...

Spring boot jackson datetime 配置

,发现有个 8 小时的时间差,解决方案在 application.properties 文件里面添加 spring.jackson.time-zone=GMT+8。 如果返回出来的时间数据需要固定的 String 格式,需要在 application.properties 添加如下配置 spring.jackson.date-format=yyyy-MM-dd HH:mm:ss 让该配置文件在启动的时候加载到...

Nginx 403 错误解决方法

/work/code/may/lml; index index.html index.php; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pa...

Laravel框架之Migration使用教程

crements('id')->comment('主键id号'); $table->integer('team_id')->default(0)->comment('队伍id号'); $table->string('team_name')->default('')->comment('队伍名称'); $table->float('coverage_percent')->default(0)->comment(...

Android WebView 使用 loadData 无法渲染怎么办

种字符就会出现解析错误,显示找不到网页还有部分 html 代码。需要如何处理呢?我们需要用 UrlEncoder 编码为 %23, %25, %27, %3f 。 可以使用以下两种代码,data 为 string 类型的 html 代码 1 webView.loadData(URLEncoder.encode(data, "utf-8"), "text/html", "utf-8"); 这样一些背景效果什么的...
2024-04-29 01:49:13 1714326553 0.017185