类的使用
org.springframework.beans.factory.annotation.Autowired
使用Autowired的程序包 程序包 说明 org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.test.context.junit4 Support classes for integrating the Spring TestContext Framework with JUnit 4.12 or higher.org.springframework.test.context.testng Support classes for integrating the Spring TestContext Framework with TestNG.org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.context.annotation中Autowired的使用
注释类型为Autowired的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 voidLoadTimeWeavingConfiguration. setLoadTimeWeavingConfigurer(LoadTimeWeavingConfigurer ltwConfigurer)org.springframework.test.context.junit4中Autowired的使用
注释类型为Autowired的org.springframework.test.context.junit4中的方法 修饰符和类型 方法 说明 voidAbstractTransactionalJUnit4SpringContextTests. setDataSource(DataSource dataSource)Set theDataSource, typically provided via Dependency Injection.org.springframework.test.context.testng中Autowired的使用
注释类型为Autowired的org.springframework.test.context.testng中的方法 修饰符和类型 方法 说明 voidAbstractTransactionalTestNGSpringContextTests. setDataSource(DataSource dataSource)Set theDataSource, typically provided via Dependency Injection.org.springframework.web.reactive.config中Autowired的使用
注释类型为Autowired的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 voidDelegatingWebFluxConfiguration. setConfigurers(List<WebFluxConfigurer> configurers)org.springframework.web.servlet.config.annotation中Autowired的使用
注释类型为Autowired的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 voidDelegatingWebMvcConfiguration. setConfigurers(List<WebMvcConfigurer> configurers)org.springframework.web.socket.config.annotation中Autowired的使用
注释类型为Autowired的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 voidDelegatingWebSocketConfiguration. setConfigurers(List<WebSocketConfigurer> configurers)voidDelegatingWebSocketMessageBrokerConfiguration. setConfigurers(List<WebSocketMessageBrokerConfigurer> configurers)