diff --git a/server/like-admin/src/main/resources/application-dev-example.yml b/server/like-admin/src/main/resources/application-dev-example.yml index 77e87313..34df7fcb 100644 --- a/server/like-admin/src/main/resources/application-dev-example.yml +++ b/server/like-admin/src/main/resources/application-dev-example.yml @@ -5,6 +5,8 @@ like: # 框架配置 spring: + jackson: + property-naming-strategy: SNAKE_CASE # 数据源配置 datasource: url: jdbc:mysql://localhost:3306/【库名称】?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false diff --git a/server/like-front/src/main/resources/application-dev-example.yml b/server/like-front/src/main/resources/application-dev-example.yml index f036cf79..6bc1cb96 100644 --- a/server/like-front/src/main/resources/application-dev-example.yml +++ b/server/like-front/src/main/resources/application-dev-example.yml @@ -4,6 +4,8 @@ like: # 框架配置 spring: + jackson: + property-naming-strategy: SNAKE_CASE # 数据源配置 datasource: url: jdbc:mysql://localhost:3306/【库名称】?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false