Skip to content

tuckeremulls/jsondeserialization-native-image-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

@JsonDeserialization(using=...) Native Image Sample Testing

  • Encountering that when @JsonDeserialization with a custom deserializer is used to deserialize a field from a response JSON of a WebClient call (when run as a native image), the following exception is encountered: No default constructor found with root cause

  • Using an API to call itself is obviously not a good practice of design patterns and is only used in this project as a quick and self-contained example. In the actual project where this exception was encountered, an outbound web client call to an external API was being made.

  • Steps to reproduce the issue:

    • mvn -Pnative spring-boot:build-image
    • docker run --rm -p 8080:8080 -d docker.io/library/jsondeserialization-exception-native:1.0.0
    • curl http://localhost:8080/sendwebclientrequest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages