- 1
- 0
- 约6.24千字
- 约 16页
- 2026-02-24 发布于福建
- 举报
第PAGE页共NUMPAGES页
2026年后端开发工程师SpringBot方向面试题及答案
一、单选题(每题2分,共20题)
1.在SpringBoot中,使用`@SpringBootApplication`注解的目的是什么?
A.启动SpringMVC
B.启动SpringCloud
C.启动整个Spring应用上下文
D.启动SpringSecurity
2.SpringBot项目中,哪个注解用于定义一个接收消息的控制器方法?
A.`@RestController`
B.`@MessageMapping`
C.`@Service`
D.`@Component`
3.在SpringBot中,如何定义一个Bean并使其自动注入到其他组件中?
A.使用`@Autowired`注解
B.使用`@Bean`注解
C.使用`@Component`注解
D.以上都是
4.SpringBot项目中,用于处理异步消息的注解是?
A.`@Async`
B.`@Scheduled`
C.`@PostConstruct`
D.`@PreDestroy`
5.在SpringBot中,哪个类是消息模型的基础类?
A.`BotMessage`
B.`Message`
C.`ChatMessage`
D.`WebSocketM
原创力文档

文档评论(0)