according to Spring's documentation[1]:
@Autowired is fundamentally about type-driven injection
If you replace:
@Autowired
FooDao fooDao;
with something like: @Autowired
var fooDao;
I'm pretty sure type-driven injection breaks.[1] https://docs.spring.io/spring/docs/current/spring-framework-...