Open
Description
Hi there, I face a issue here, "When i create a new spring boot project with admin and server & new Object mapper it fails.", I just tried to create object mapper to other rest client then i realised my spring boot admin doesn't work anymore!, please let me know how to fix this issue.
@EnableAdminServer
@SpringBootApplication
public class DemoApp {
public static void main(String[] args) {
SpringApplication.run(LogViewerApplication.class, args);
}
@Bean(name = "newObjectMapper")
public ObjectMapper newObjectMapper() {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
return objectMapper;
}
}
LOG: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of
de.codecentric.boot.admin.server.domain.values.Registration (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: REDACTED (
StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION disabled); line: 1, column: 2]