Sunday, 4 August 2019

How javax.inject.provider autowired in Spring

When moving a legacy code from the Guice to Spring boot, how to handle the injection of javax.inject.Provider ?  

Spring implements JSR 330 staring from Spring 3.0; the javax.inject annotations are supported too in the spring.

It seems that Autowire and Inject are doing the same in the spring;
So it looks that when auto-wiring a Provider, it should return a T type instance(scope = prototype? )

needs to go further to know


Spring - Using JSR 330 Provider to Inject Narrower Scoped Bean

No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...