426 upgrade required

426 upgrade required

请求返回 426

nginx 反向代理默认走的http 1.0版本

但是 被反向代理的服务器是1.1版本的!

so 在反向代理的时候加上一句

prox

...

Read More...


could not find driver

[Doctrine\DBAL\Driver\PDOException] could not find driver

这是执行

php artisan migrate

后报的错!

一种是 没有配

...

Read More...


Go语言的goroutines、信道和死锁

最近看到一个问题,然后看到一个channel,想想目前工作中还未用到过,遂,想了解下这是啥玩意儿!然后看到这篇文章,然后保存下来了!源地址是 https://blog.csdn.net/kjfcpua

...

Read More...


golang身份证邮箱手机号等等敏感信息加星

// 各种字符串加星

匹配 手机号,邮箱,中文,身份证等等

// 各种字符串加星
func HideStar(str string) (result string) {
    if str ==
...

Read More...


beego注解路由不生效

注解路由操作很是简单!

在 控制器的方法上 写一个注释

// @router /console/post [get]

然后在 router.go里引入 控制器即可

比如:

beego.In

...

Read More...


beego模板提交不了put,delete等请求

因为要进行修改操作,所以提交用put形式提交!结果发现一直404.....

我已经在表单里添加了

                        <input type="hidden" 
...

Read More...


【go新手】beego关联关系的一个坑

先建Users

type Users struct {
    Id          int64           `orm:"column(id);auto;unique" json:"id"`
...

Read More...


logs.BeeLogger.SetLogger: invalid character '/' looking for beginning of value

日志配置,然后报错,日志也读不出来

...

Read More...


2018/01/08 19:03:47 SUCCESS  ▶ 0041 Built Successfully!
2018/01/08 19:03:47 INFO     ▶ 0042 Restarti
...

Read More...


【go新手】beego postgresql数据迁移报错

2018/01/05 17:19:27 INFO     ▶ 0001 Using 'postgres' as 'driver'
2018/01/05 17:19:27 INFO     ▶ 0002
...

Read More...


go get 没反应(下载不下来)

go get -u -v github.com/astaxie/beego

然后报

fatal: unable to access 'https://github.com/astaxie/be

...

Read More...


  • 缓存:说白了,就是让数据尽早进入缓存,离程序近一点,不要大量频繁的访问DB。

  • 降级:如果不是核心链路,那么就把这个服务降级掉。打个比喻,现在的APP都讲究千人千面,拿到数据后,做个性化排序展示

...

Read More...


当你能力不能满足你的野心的时候,你就该沉下心来学习