diff --git a/udf-starter-core/pom.xml b/udf-starter-core/pom.xml index 9ef61e0..b0c5e7a 100644 --- a/udf-starter-core/pom.xml +++ b/udf-starter-core/pom.xml @@ -33,6 +33,11 @@ org.springframework.boot spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-actuator-docs + org.springframework.boot diff --git a/udf-starter-core/src/main/java/com/egridcloud/udf/core/BaseApplication.java b/udf-starter-core/src/main/java/com/egridcloud/udf/core/BaseApplication.java index 6c3cb71..d29518f 100644 --- a/udf-starter-core/src/main/java/com/egridcloud/udf/core/BaseApplication.java +++ b/udf-starter-core/src/main/java/com/egridcloud/udf/core/BaseApplication.java @@ -10,6 +10,7 @@ import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; +import org.springframework.context.annotation.Primary; import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.web.client.RestTemplate; @@ -37,6 +38,7 @@ public class BaseApplication { * @return xssObjectMapper */ @Bean + @Primary public ObjectMapper xssObjectMapper(Jackson2ObjectMapperBuilder builder) { //解析器 ObjectMapper objectMapper = builder.createXmlMapper(false).build();