have u debug it ? add autowire of objectMapper an...
# spring
m
have u debug it ? add autowire of objectMapper and you will see what kind of mapper u have - 1st rule if you can ask compiler 😁 @poohbar pls continue in thread - we won't be verbose in channel
p
I autowired ObjectMmapper
mapper._registeredModuleTypes
Copy code
0 = "com.fasterxml.jackson.module.kotlin.KotlinModule"
1 = "org.springframework.boot.jackson.JsonComponentModule"
so it seems like the module is there
now the question is whether the
@PostMapping
method uses the same mapper.. I would hope it does
the other question is why would it throw 😄
When I debug what spring does with the incoming data it goes directly into
BeanUtils
and tries to instantiate it using the no-arg constructor
oh I guess it does not use jackson at all!
because it's POST form-data
m
probably now you should read about Jackson2ObjectMapperBuilder
for example this thread