@Autowired use

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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324801594&siteId=291194637