All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.macrocloud.kernel.toolkit.jackson.BaseJacksonProperties Maven / Gradle / Ivy

There is a newer version: 1.1.0-RELEASE
Show newest version
package org.macrocloud.kernel.toolkit.jackson;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * jackson 配置.
 *
 * @author macro
 */

@Getter
@Setter
@ConfigurationProperties("kernel.jackson")
public class BaseJacksonProperties {

	/** null 转为 空,字符串转成"",数组转为[],对象转为{},数字转为-1. */
	private Boolean nullToEmpty = Boolean.TRUE;
	
	/** 响应到前端,大数值自动写出为 String,避免精度丢失. */
	private Boolean bigNumToString = Boolean.TRUE;
	
	/** 支持 MediaType text/plain,用于和 kernel-crypto 一起使用. */
	private Boolean supportTextPlain = Boolean.FALSE;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy