Spring IoC and Generic Interface Type [duplicate]
I do not believe this is possible due to erasure. We generally switched to strongly typed sub-interfaces when going for full-autowiring: public interface LongService extends ISimpleService<Long> {} public interface StringService extends ISimpleService<String> {} Upon doing this switch we found we actually liked this pretty well, because it allows us to do “find usage” tracking much … Read more