spring-projects-experimental / spring-grpc

88 stars 19 forks source link

Use specific bean types in autoconfiguration #59

Closed onobc closed 1 week ago

onobc commented 1 week ago

This commit uses the most specific bean type in the autoconfiguration to improve AOT compatibility.

As per the following restriction

As we cannot rely on the instance, make sure that the bean type is as precise as possible.

from https://docs.spring.io/spring-framework/reference/core/aot.html#aot.introduction