1.背景 为了便于分析和记录系统的运行,一个系统输出其运行的关键日志是非常必要的 比如输出:请求参数、请求url、请求方式、执行的sql、重要操作的日志、响应结果等 而这些日志中,大部分不需要我们手动对每个接口去输出,主需要统一配置就可以了 2.实际生产运用步骤 步骤一:在resources下添加l ...
分类:
编程语言 时间:
2021-01-05 11:26:27
阅读次数:
0
1. 问号后面带的参数 url:http://localhost:4200/news?key=japan html 调用方法: <a [routerLink]="['/news']" [queryParams]="{key:'japan'}"> 跳转 ts 调用方法: private router: ...
分类:
其他好文 时间:
2021-01-05 10:50:30
阅读次数:
0
package mainimport ( "os/exec" "syscall")// open opens the specified URL in the default browser of the user.func main() { // 无GUI调用 cmd := exec.Comman ...
在nginx配置中添加 location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; } ...
分类:
其他好文 时间:
2021-01-04 11:32:56
阅读次数:
0
server { listen 80; server_name localhost; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443 ssl; server_name localhost; proxy_buffering ...
分类:
Web程序 时间:
2021-01-04 11:17:46
阅读次数:
0
最近在学习python,按照网上的步骤进行操作 url.py的代码 但是一直报如下的错。 Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/page/ Using the URLconf defin ...
分类:
其他好文 时间:
2021-01-04 11:14:18
阅读次数:
0
先来看一段代码,就是一小段而已: export function loginWithWx() { wx.showLoading({ title: "登录中..." }); wx.login({ success: res => { wx.request({ url: `${apiRoot}wx/${r ...
分类:
编程语言 时间:
2021-01-04 11:11:14
阅读次数:
0
相同点:都是异步请求的方式来获取服务端的数据; 异同点: a、请求方式不同:\(.get() 方法使用GET方法来进行异步请求的。\).post() 方法使用POST方法来进行异步请求的。 b、参数传递方式不同:get请求会将参数跟在URL后进行传递,而POST请求则是作为HTTP消息的实体内容发送 ...
分类:
Web程序 时间:
2021-01-04 11:09:48
阅读次数:
0
1、查看自己的设备对应的cuda版本 (1)打开NVIDIA控制面板 (2)点击“帮助”,如下图: (3)点击“系统信息” >“组件”可以看到下图,CUDA版本是10.2: 2、在官网(https://pytorch.org/)上查看对应的版本 从下图可以看到红线标注的是需要运行的命令。但是,如果直 ...
Pass request headers in a jQuery AJAX GET call 回答1 As of jQuery 1.5, there is a headers hash you can pass in as follows: $.ajax({ url: "/test", header ...
分类:
Web程序 时间:
2021-01-04 10:46:12
阅读次数:
0