diff --git a/caf-boot-starters/caf-boot-starter-base/src/main/java/io/iec/edp/caf/base/config/serializer/SerializerAutoConfiguration.java b/caf-boot-starters/caf-boot-starter-base/src/main/java/io/iec/edp/caf/base/config/serializer/SerializerAutoConfiguration.java index 9049e63ff22308256d81b1f019850fcf99d132f1..c84f52d5498ec18c36225c0899d312d2210a4339 100644 --- a/caf-boot-starters/caf-boot-starter-base/src/main/java/io/iec/edp/caf/base/config/serializer/SerializerAutoConfiguration.java +++ b/caf-boot-starters/caf-boot-starter-base/src/main/java/io/iec/edp/caf/base/config/serializer/SerializerAutoConfiguration.java @@ -1,26 +1,13 @@ -//package io.iec.edp.caf.base.config.serializer; -// -//import io.iec.edp.caf.commons.core.api.CafSerialization; -//import io.iec.edp.caf.commons.exception.config.ExceptionHandlingSettings; -//import io.iec.edp.caf.commons.exception.entity.ExceptionHandlerInfo; -//import io.iec.edp.caf.commons.exception.entity.ExceptionPolicyInfo; -//import io.iec.edp.caf.commons.exception.service.CafExceptionHandler; -//import org.springframework.context.annotation.Bean; -//import org.springframework.context.annotation.Configuration; -// -//import java.util.Iterator; -//import java.util.List; -//import java.util.ServiceLoader; -// -//@Configuration(proxyBeanMethods=false) -//public class SerializerAutoConfiguration { -// static { -// ServiceLoader operations = ServiceLoader.load(CafSerialization.class); -// -// Iterator iterator = operations.iterator(); -// while (iterator.hasNext()) { -// CafSerialization operation = iterator.next(); -// SerializerFactoryWrapper.registerAppSerialization(operation.getId(),operation.getClass()); -// } -// } -//} +package io.iec.edp.caf.base.config.serializer; + +import io.iec.edp.caf.commons.core.config.JsonConfigurationProperties; +import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.context.annotation.Configuration; + +@Configuration(proxyBeanMethods=false) +@EnableConfigurationProperties({ + JsonConfigurationProperties.class +}) +public class SerializerAutoConfiguration { + +} diff --git a/caf-boot-starters/caf-boot-starter-base/src/main/resources/META-INF/spring.factories b/caf-boot-starters/caf-boot-starter-base/src/main/resources/META-INF/spring.factories index 4cfaf357f8bdbb116d7d8dfc2c2b2eb58f2bd3a3..02325ea73287356df067aff44a028fd3ac2f3d10 100644 --- a/caf-boot-starters/caf-boot-starter-base/src/main/resources/META-INF/spring.factories +++ b/caf-boot-starters/caf-boot-starter-base/src/main/resources/META-INF/spring.factories @@ -3,4 +3,6 @@ org.springframework.context.ApplicationListener=\ io.iec.edp.caf.base.config.runtimes.EnvironmentPreparedListener org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -io.iec.edp.caf.base.config.exception.ExceptionAutoConfiguration +io.iec.edp.caf.base.config.exception.ExceptionAutoConfiguration,\ +io.iec.edp.caf.base.config.serializer.SerializerAutoConfiguration +