下面哪些注解是Spring的原始注解?
A: @Component
B: @Controller
C: @Scope
D: @Bean
A: @Component
B: @Controller
C: @Scope
D: @Bean
A,B,C
举一反三
- Spring注解中使用在类上用于实例化Bean的注解是? A: @ Component B: @Value C: @Test D: @Bean
- 下面哪个不是 Spring 的注解() A: @Aspect B: @Service C: @Component D: @Controller E: @View
- Spring注解中用于指定当前类是一个配置类的注解是? A: @Component B: @Configuration C: @Bean D: @Import
- Spring中成对出现的注解为() A: @Configuration B: @Value C: @Controller D: @Bean
- spring中用注解定义类的使用()[2项] A: @Component B: @Autowired C: @Scope D: @Qualifier
内容
- 0
使用Spring的原始注解不能全部替代xml配置文件,下面哪些是不能使用Spring原始注解实现的? A: 非自定义的Bean的配置 B: 加载properties文件的配置 C: 组件扫描的配置 D: 引入其他文件配置文件
- 1
在spring中, @Component 注解表示( )。 A: 定义一个Spring管理的Bean B: 定义自动注入 C: 定义该Bean为单例 D: 定义该一个切面
- 2
Spring中,要将一个已经声明的bean,注入到当前类的成员变量,使用的注解是() A: @bean B: @autowire C: @value D: @Controller
- 3
下列哪些注解可以在SpringMVC中使用() A: @ResponseBody B: @Component C: @Autowired D: @Controller
- 4
@Bean注解的方法所在的类应该使用哪个注解 A: @Component B: @Configuration C: @Service D: @Repository