Spring Boot REST控制器中的Snake-Case风格参数

Spring Boot REST控制器中的Snake-Case风格参数

微服务 2年前 (2022-06-27) 浏览: 915 评论: 0

另一个琐碎而无用的映射。控制器将snake_case参数映射到camelCase,如下所示: @GetMapping("/employee") @ResponseStatus(HttpStatus.OK) public EmployeeDto findByName( @RequestParam("first_name") String firstName, @RequestParam("last_

登录

忘记密码 ?

切换登录

注册