MrTreasure
MrTreasure
```bash location / { #root html; #index index.html index.htm; proxy_pass http://localhost:2001; #try_files $uri $uri/ /index.html; error_page 404 /index.html; } ``` 这样会有问题,我的API也是这个域名下,导致全部被拦截请求不到了。
```bash location /api { proxy_pass http://localhost:2001; } ``` 为对应 api 接口做另外的配置,在 nginx 中如果请求是xxx/api,那么 nginx中的 /api 会优先响应,这一点和 exprss 不同。 另外这里反向代理的服务器并不是页面文件并不是 html 而是 jsp,ftl 这些需要处理的文件,那么nginx 只转发请求就好了 ```bash location / { proxy_pass http://localhost:2001;...
1. 为什么每次执行数据库操作都要放一个conn,是为了操作其他数据库吗? 2. 每次操作都会执行_getConnection(排除入参传了conn),这个是从连接池取得的连接,但是连接池是同步代码创建的,那么从连接池取得连接时开启了数据库吗?还是说连接池一直打开着数据库? 3. java .net同步代码通过连接池打开数据库的方式和node一样吗?
希望再来个MongoDB Helper放在issue :kissing_heart:
扎实的语言基础,良好的编程思想,优异的自学能力,跨越本专业的视野。
原生JS看起来就是很舒服
github里的同学怎么了解项目的需求,哪些已经做了,哪些还没有做?
获取用户收藏的职位列表,大部分是从已有键值中获取 ``` Url: /user/jobCollection Method: GET Request:{ } Response: { headers:{ status: 200 }, body:[ { "name": "媒介合作人及运营负责人", "city": "浦东新区-上海", "logoUrl": null, "salary": "15-20K", "comName": "上海客汗网络科技有限公司" }, { "name": "媒介合作人及运营负责人",...
```bash if command -v curl &> /dev/null; then result=$(curl -w %{http_code} -skLo ${mbtmp}/mixbox.tar.gz ${mburl}/appstore/mixbox_${model}.tar.gz) else wget-ssl -q --no-check-certificate --tries=1 --timeout=10 -O ${mbtmp}/mixbox.tar.gz ${mburl}/appstore/mixbox_${model}.tar.gz [ $? -eq 0 ] && result="200"...
手动打印 code 码是 403