Inject Service into custom Jackson Serializer
问题 Hi I have problem in the following scenario: I'm using Spring 4.xx with Jackson 2.xx and I'm ompelenting a RESTful Web Application. I'm now faced with te problem that I need some custom serialzation for one of my models, so i used a custom serilaizer, but i also need to fetch some data out of the database while serializing. So I tried to inject my Serivce into the Serializer but it always stays null. As far as I have read this happens if you instanciate your object directly, which I guess is