本文整理匯總了Java中com.fasterxml.jackson.databind.SerializationFeature.INDENT_OUTPUT屬性的典型用法代碼示例。如果您正苦於以下問題:Java SerializationFeature.INDENT_OUTPUT屬性的具體用法?Java SerializationFeature.INDENT_OUTPUT怎麽用?Java SerializationFeature.INDENT_OUTPUT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.fasterxml.jackson.databind.SerializationFeature
的用法示例。
在下文中一共展示了SerializationFeature.INDENT_OUTPUT屬性的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: AppConfigurationJsonMapper
/**
* Initializes the JSON constructor.
*/
public AppConfigurationJsonMapper() {
super();
SimpleModule module = new SimpleModule();
module.addSerializer(AppConfiguration.class, AppConfigurationSerializer.getInstance());
module.addSerializer(Controller.class, ControllerSerializer.getInstance());
module.addDeserializer(AppConfiguration.class, AppConfigurationDeserializer.getInstance());
module.addDeserializer(Controller.class, ControllerDeserializer.getInstance());
super.registerModule(module);
super.enable(SerializationFeature.INDENT_OUTPUT);
}
示例2: AppConfigurationYamlMapper
/**
* Initializes the YAML constructor.
*/
public AppConfigurationYamlMapper() {
super();
SimpleModule module = new SimpleModule();
module.addSerializer(AppConfiguration.class, AppConfigurationSerializer.getInstance());
module.addSerializer(Controller.class, ControllerSerializer.getInstance());
module.addDeserializer(AppConfiguration.class, AppConfigurationDeserializer.getInstance());
module.addDeserializer(Controller.class, ControllerDeserializer.getInstance());
super.registerModule(module);
super.enable(SerializationFeature.INDENT_OUTPUT);
}
示例3: ControllerYamlMapper
/**
* Initializes the YAML constructor.
*/
public ControllerYamlMapper() {
super();
SimpleModule module = new SimpleModule();
module.addSerializer(Controller.class, ControllerSerializer.getInstance());
module.addDeserializer(Controller.class, ControllerDeserializer.getInstance());
super.registerModule(module);
super.enable(SerializationFeature.INDENT_OUTPUT);
}
示例4: ControllerJsonMapper
/**
* Initializes the JSON constructor.
*/
public ControllerJsonMapper() {
super();
SimpleModule module = new SimpleModule();
module.addSerializer(Controller.class, ControllerSerializer.getInstance());
module.addDeserializer(Controller.class, ControllerDeserializer.getInstance());
super.registerModule(module);
super.enable(SerializationFeature.INDENT_OUTPUT);
}
示例5: BotCommandJsonMapper
/**
* Initializes the JSON constructor.
*/
public BotCommandJsonMapper() {
super();
SimpleModule module = new SimpleModule();
module.addSerializer(BotCommand.class, BotCommandSerializer.getInstance());
module.addSerializer(HttpFloodAttack.class, HttpFloodAttackSerializer.getInstance());
module.addSerializer(Controller.class, ControllerSerializer.getInstance());
module.addDeserializer(BotCommand.class, BotCommandDeserializer.getInstance());
module.addDeserializer(HttpFloodAttack.class, HttpFloodAttackDeserializer.getInstance());
module.addDeserializer(Controller.class, ControllerDeserializer.getInstance());
super.registerModule(module);
super.enable(SerializationFeature.INDENT_OUTPUT);
}
示例6: FloodAttackJsonMapper
/**
* Initializes the JSON constructor.
*/
public FloodAttackJsonMapper() {
super();
SimpleModule module = new SimpleModule();
module.addSerializer(HttpFloodAttack.class, HttpFloodAttackSerializer.getInstance());
module.addDeserializer(HttpFloodAttack.class, HttpFloodAttackDeserializer.getInstance());
super.registerModule(module);
super.enable(SerializationFeature.INDENT_OUTPUT);
}
示例7: SimpleReportJsonMapper
/**
* Initializes the JSON constructor.
*/
public SimpleReportJsonMapper() {
super();
SimpleModule module = new SimpleModule();
module.addDeserializer(SimpleReport.class, SimpleReportDeserializer.getInstance());
module.addDeserializer(AppConfiguration.class, AppConfigurationDeserializer.getInstance());
module.addDeserializer(Controller.class, ControllerDeserializer.getInstance());
module.addDeserializer(HttpFloodAttack.class, HttpFloodAttackDeserializer.getInstance());
module.addSerializer(SimpleReport.class, SimpleReportSerializer.getInstance());
module.addSerializer(AppConfiguration.class, AppConfigurationSerializer.getInstance());
module.addSerializer(Controller.class, ControllerSerializer.getInstance());
module.addSerializer(HttpFloodAttack.class, HttpFloodAttackSerializer.getInstance());
super.registerModule(module);
super.enable(SerializationFeature.INDENT_OUTPUT);
}