1. @Autowired can load an interface, and then let the interface call the class that implements this interface.
2, @Autowired can also directly load a class.
3. The premise is that the class should be annotated with @Component or @Service.
1. @Autowired can load an interface, and then let the interface call the class that implements this interface.
2, @Autowired can also directly load a class.
3. The premise is that the class should be annotated with @Component or @Service.