@GetMapping("/api/user/query/{uid}") fun queryUser(@PathVariable uid: Int): UserEntity { return ...by uid }
Spring API后端最佳实践
原文:https://www.cnblogs.com/develon/p/12733365.html