- 0
- 0
- 约5.13千字
- 约 9页
- 2026-07-17 发布于湖北
- 举报
202Java工程师Spring框架测试试卷
考试时间:______分钟总分:______分姓名:______
一、选择题
1.Spring框架的核心思想是()。
A.面向对象编程
B.面向接口编程
C.控制反转
D.依赖注入
2.下列哪个注解用于标识Spring管理的Bean?
A.@Component
B.@Service
C.@Repository
D.以上都是
3.Spring中用于配置Bean的XML文件,其根元素是什么?
A.beans
B.config
C.context
D.application
4.Spring中用于实现AOP的注解是()。
A.@Before
B.@After
C.@AfterReturning
D.以上都是
5.Spring中用于声明一个Bean的初始化方法的注解是()。
A.@PostConstruct
B.@PreDestroy
C.@InitMethod
D.以上都是
6.Spring中用于声明一个Bean的销毁方法的注解是()。
A.@PostConstruct
B.@P
原创力文档

文档评论(0)