spring-projects / spring-data-rest

Simplifies building hypermedia-driven REST web services on top of Spring Data repositories
https://spring.io/projects/spring-data-rest
Apache License 2.0
914 stars 560 forks source link

Cannot use @Autowired in custom serializers [DATAREST-696] #1068

Open spring-projects-issues opened 8 years ago

spring-projects-issues commented 8 years ago

Vladimir Tsanev opened DATAREST-696 and commented

SPR-10768 Adds the possiblity to use @Autowire in custom serializers/deserializers.

However when using spring data rest, my custom serializer is not autowired.

I think this is because the SpringHandlerInstantiator gets overridden by HalHandlerInstantiator


Affects: 2.4 GA (Gosling)

1 votes, 2 watchers

spring-projects-issues commented 5 years ago

John Iacona commented

I'm pretty sure this is related to an issue I have outlined here: https://stackoverflow.com/questions/54199508/custom-jackson-converter-not-being-managed-by-spring