From ec0177d8539af44d44f3d8a9533c4e74d765198b Mon Sep 17 00:00:00 2001 From: "yangkai.shen" <237497819@qq.com> Date: Tue, 14 Nov 2017 11:02:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20mybatis=20demo=20=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-demo-mybatis/src/main/resources/application.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-boot-demo-mybatis/src/main/resources/application.yml b/spring-boot-demo-mybatis/src/main/resources/application.yml index ef91227..dc54c9c 100644 --- a/spring-boot-demo-mybatis/src/main/resources/application.yml +++ b/spring-boot-demo-mybatis/src/main/resources/application.yml @@ -2,8 +2,9 @@ server: port: 8080 context-path: /demo spring: - jackson: - default-property-inclusion: non_null + # json 转化移除 null 字段 + # jackson: + # default-property-inclusion: non_null datasource: # 启动时自动运行的 SQL 文件 schema: classpath:init-sql/schema.sql