mirror of
				https://github.com/continew-org/continew-starter.git
				synced 2025-10-31 10:57:15 +08:00 
			
		
		
		
	chore(json/jackson): 优化 Jackson 默认配置
This commit is contained in:
		| @@ -13,9 +13,11 @@ spring: | ||||
|     date-format: yyyy-MM-dd HH:mm:ss | ||||
|     # 序列化配置(Bean -> JSON) | ||||
|     serialization: | ||||
|       # 不允许序列化日期时以 timestamps 输出(默认:true) | ||||
|       write-dates-as-timestamps: false | ||||
|       # 允许序列化无属性的 Bean | ||||
|       FAIL_ON_EMPTY_BEANS: false | ||||
|       fail-on-empty-beans: false | ||||
|     # 反序列化配置(JSON -> Bean) | ||||
|     deserialization: | ||||
|       # 允许反序列化不存在的属性 | ||||
|       FAIL_ON_UNKNOWN_PROPERTIES: false | ||||
|       fail-on-unknown-properties: false | ||||
|   | ||||
		Reference in New Issue
	
	Block a user