一、安装(基于docker-compose) 使用docker安装Nginx非常简单,只需要准备如下YML文件即可: version: "3" services: nginx12: restart: always image: daocloud.io/library/nginx:1.12.0 con ...
分类:
其他好文 时间:
2021-06-17 16:49:40
阅读次数:
0
首先需要在 Vue 项目中继承 typescript vue add typescript 提示:如果配置完 ts 后调用 this.$store 有警告信息,请重启 vscode,或者安装 vue3 的插件后重启 vscode 充实 一、修改 store.js 为 store.ts 二、配置 st ...
分类:
其他好文 时间:
2021-06-17 16:47:28
阅读次数:
0
About two months ago we started using Rollbar to notify us of various errors in our Web App. Ever since then we have been getting the occasional error ...
分类:
其他好文 时间:
2021-06-17 16:44:39
阅读次数:
0
public interface StudentService { public void add(String studentName); } 定义一个spring的FactoryBean,FactoryBean在通过spring实例化生成的不是自己本身,而是通过调用的getObject方法返回的 ...
分类:
编程语言 时间:
2021-06-17 16:26:25
阅读次数:
0
1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * struct ListNode *next; 6 * }; 7 */ 8 9 10 struct ListNode* middleN ...
分类:
其他好文 时间:
2021-06-16 18:35:48
阅读次数:
0
问题出现场景: 1,码云新建一个仓库,选择了LIENCE,(以前都没选择过,所以都没有出现该问题) 2,本地代码完成后,依次执行命令git init ==> git add . ==> git commit -m "xxx" ==> git remote add :https://gitee.com ...
分类:
其他好文 时间:
2021-06-16 18:35:36
阅读次数:
0
public class WeightProcessor { private final Map<Integer, List<String>> map = new HashMap<>(); //保存权重值和地址 private final Integer[] weight; //保存权重值,用于负载 ...
分类:
其他好文 时间:
2021-06-16 18:35:22
阅读次数:
0
操作列表 遍历列表 fruits = ['apple','banana','pear'] for fruit in fruits: print(fruit) #缩进表示在循环体内 print('done!') #不缩进是循环体外,避免缩进错误 使用range()创建数字列表 numbers = li ...
分类:
编程语言 时间:
2021-06-16 18:34:11
阅读次数:
0
<?php /** * BCmath 封装类 * Calc::init(10)->add(1,2,3)->sub(1,2)->mul(4, 5)->value(2); // (10+1+2+3-1-2)*4*5 最后 get 保留 2位小数 * Calc::add(10, 2)->div(2)->v ...
分类:
Web程序 时间:
2021-06-16 18:18:02
阅读次数:
0
快速搭建一个node服务,可以用于检查自己的单页应用是否有问题 app.js var exppress = require("express"); const fs = require("fs"); var app = exppress(); app.use(exppress.static("dis ...
分类:
其他好文 时间:
2021-06-16 18:10:25
阅读次数:
0