[JAVA] Change Spring Boot REST API request / response from CamelCase to SankeCase

background

Because the JSON API uses SnakeCase For more information, see Translation: WebAPI Design Best Practices (https://qiita.com/mserizawa/items/b833e407d89abd21ee72).

Setting

If it is SpringBoot 2.0.5.RELEASE, it should be described in application.yml.

application.yml


spring:
  jackson:
    property-naming-strategy: SNAKE_CASE

Recommended Posts

Change Spring Boot REST API request / response from CamelCase to SankeCase
Try Spring Boot from 0 to 100.
03. I sent a request from Spring Boot to the zip code search API
Customize REST API error response with Spring Boot (Part 2)
Introduce swagger-ui to REST API implemented in Spring Boot
Customize REST API error response with Spring Boot (Part 1)
Implement REST API in Spring Boot
Upgrade spring boot from 1.5 series to 2.0 series
Let's find out how to receive in Request Body with REST API of Spring Boot
02. I made an API to connect to MySQL (MyBatis) from Spring Boot
Story when moving from Spring Boot 1.5 to 2.1
Changes when migrating from Spring Boot 1.5 to Spring Boot 2.0
Changes when migrating from Spring Boot 2.0 to Spring Boot 2.2
Output request and response log in Spring Boot
◆ Get API created by Spring Boot from React
Automatically map DTOs to entities with Spring Boot API
Hello World (REST API) with Apache Camel + Spring Boot 2
Implement a simple Rest API with Spring Security with Spring Boot 2.0
The story of raising Spring Boot from 1.5 series to 2.1 series part2
How to change application.properties settings at boot time in Spring boot
Understand the rough flow from request to response in SpringWebMVC
Implement REST API with Spring Boot and JPA (Application Layer)
Implement REST API with Spring Boot and JPA (Infrastructure layer)
How to call and use API in Java (Spring Boot)
Implement REST API with Spring Boot and JPA (domain layer)
Implement a simple Rest API with Spring Security & JWT with Spring Boot 2.0
Introduction to Spring Boot ① ~ DI ~
Introduction to Spring Boot ② ~ AOP ~
Introduction to EHRbase 2-REST API
Introduction to Spring Boot Part 1
Change from SQLite3 to PostgreSQL
Implement a simple Web REST API server with Spring Boot + MySQL
What I did in the migration from Spring Boot 1.4 series to 2.0 series
What I did in the migration from Spring Boot 1.5 series to 2.0 series
[Beginner] Let's write REST API of Todo application with Spring Boot
Spring with Kotorin --4 REST API design
Spring Boot: Restful API sample project
How to set Spring Boot + PostgreSQL
spring boot access authorization RESTful API
Change DB from SQLite to MySQL
How to use ModelMapper (Spring boot)
Spring Boot starting from zero Part 2
Spring Boot starting from zero Part 1
How to change from HTML to Haml
[Spring Boot] I investigated how to implement post-processing of the received request.
How to read Body of Request multiple times with Spring Boot + Spring Security
Change the half-width space of STS (Spring Tool Suite) from "u" to "・"