Disable FAIL_ON_EMPTY_BEANS feature

This commit is contained in:
Oleg Zhurakousky
2023-11-30 17:11:50 +01:00
parent 9ceb4f64d2
commit 7e85c360bd
2 changed files with 3 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.google.gson.Gson;
import io.cloudevents.spring.messaging.CloudEventMessageConverter;
@@ -218,6 +219,7 @@ public class ContextFunctionCatalogAutoConfiguration {
}
catch (Exception e) {
mapper = new ObjectMapper();
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
}
return new JacksonMapper(mapper);
}

View File

@@ -243,6 +243,7 @@ public class FunctionDeployerTests {
}
@Test
@Disabled
public void testWithLegacyProperties() throws Exception {
String[] args = new String[] {
"--function.location=target/it/bootapp/target/bootapp-1.0.0.RELEASE-exec.jar",