hiboot v1.2.0 Release Notes
Release Date: 2019-08-07 // over 4 years ago-
๐ Release Notes
- ๐ Support customized server context path, it can be configured in config file
application.yml
e.g.
server: context\_path: /my-app
๐ Support customized HTTP router annotations
at.RequestMapping
,at.GetMapping
,at.PostMapping
,at.PutMapping
,at.DeleteMapping
,at.Method
, andat.Path
, see here for more detailstype UserController struct { // at.RestController or at.RestController must be embedded here at.RestController// then Hiboot will inject /user to UserController.RequestMapping at.RequestMapping
value:"/user"
}func (c *UserController) Get( id int, name string, at struct{at.GetMapping; at.Pathvalue:"/{id:int}/and/{name}"
}, ) (response *UserResponse, err error) { // response response = new(UserResponse) // TODO: implement business logicreturn}โ Added Ping and Pong callback to WebSocket handler
- ๐ Support customized server context path, it can be configured in config file