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 fileapplication.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, and at.Path, see here for more details

      type 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.Path value:"/{id:int}/and/{name}"}, ) (response *UserResponse, err error) { // response response = new(UserResponse) // TODO: implement business logicreturn}

    • โž• Added Ping and Pong callback to WebSocket handler