题目内容

用于指定当前类是一个 Spring 配置类,当创建容器时会从该类上加载注解的是哪个注解?

A. @Import
B. @PropertySource
C. @ComponentScan
D. @Configuration

查看答案
更多问题

用于指定 Spring 在初始化容器时要扫描的包。 作用和在 Spring 的 xml 配置文件中的 一样的注解是()。

A. @Configuration
B. @Bean
C. @PropertySource
D. @ComponentScan

使用在方法上,标注将该方法的返回值存储到 Spring 容器中的注解是?

A. @Configuration
B. @ComponentScan
C. @PropertySource
D. @Bean

用于加载.properties 文件中的配置的注解是()。

A. @Import
B. @PropertySource
C. @Bean
D. @ComponentScan

所谓_________是指那些被拦截到的点。在spring中,这些点指的是方法,因为spring只支持方法类型的连接点。

A. Target
B. Proxy
C. Joinpoint
D. Pointcut

答案查题题库