Which type of Dependency Injection it is when we have @Autowire on a class field?

Viewed 128

One way is the DI using setter methods. Other way is using constructor.

I am just curious to know which type of DI the following way is :

public class Test {

    @Autowired
    TestService service;
    ...
}
2 Answers
Related