Open formingform opened 2 weeks ago
Not sure what you want us to do, here
We do not generally accept issues where many libs are used. Reproducible cases should generally use only Jackson libs. I believe this should be reported to the myBatis community or on stackoverflow.com.
Yes, "exotic" types by 3rd party libraries/frameworks tend to require special supported, provided often as Jackson datatype modules: for Hibernate, there is https://github.com/FasterXML/jackson-datatype-hibernate/ .
Such libraries would ideally be created and maintained by library/framework maintainers. But we sometimes accept contributions if users want to write implementations. That requires someone with myBatis and Jackson knowledge.
In this case it is very likely that such contribution (PR) would be needed. Or possibly someone sharing way they have used Jackson configuration and/or custom (de)serializers.
Search before asking
Describe the bug
Jackson 2.13.5 Spring Boot 2.17.x Mybatis 3.5.x JDK 17
Here is my Mybatis map.xml
jackson cannot serialize the result of selectByPrimaryKey because of fetchType="lazy", error message like this:
and if set fetchType=“eager" or remove fetchType="lazy", Jackson works fine.
Version Information
Jackson verison: 2.13.5
Reproduction