beego is an open-source, high-performance web framework for the Go programming language.
Note: now we force the web admin service serving HTTP only.
We already fix the CVE-2021-30080, CVE-2022-31836
Note: now we force the web admin service serving HTTP only.
The most important change in this release is fix issue 4946 CVE-2022-31259. This is a security problem, so we have to publish this release.
PatternLogFormatter
handling the arguments
We remove the comments router generation function. So you have to run bee generate routers
command to generate the routers. Here is the command:
bee generate routers [-ctrlDir=/path/to/controller/directory] [-routersFile=/path/to/routers/file.go] [-routersPkg=myPackage]
-ctrlDir: the directory contains controllers definition. Bee scans this directory and its subdirectory to generate routers info
-routersFile: output file. All generated routers info will be output into this file.
If file not found, Bee create new one, or Bee truncates it.
The default value is "routers/commentRouters.go"
-routersPkg: package declaration.The default value is "routers".
When you pass routersFile parameter, youd better pass this parameter
We focus on four things:
bee generate routers
commands instead.4486 bee PR 762
RollbackUnlessCommit
API. 4542
when
to Write([]byte)
method and add prefix
to writeMsg
. 4507
duration
from prometheus labels. 4391
unknown escape sequence
in generated code. 4385
next()
. 4593
commentRouter.go
as generated file name. 4385
QueryM2MWithCtx
and QueryTableWithCtx
4424
go get
lines in .travis.yml
file 4469
web.Controller
4491
sync.map
4616
web.Config
, rename RouterXXX
to CtrlXXX
, define HandleFunc
4714
BindXXX
and XXXResp
methods to context.Context
. 4718