2026年后端开发Spring_Bot面试题库含答案.docxVIP

  • 3
  • 0
  • 约4.73千字
  • 约 13页
  • 2026-05-16 发布于福建
  • 举报

2026年后端开发Spring_Bot面试题库含答案.docx

第PAGE页共NUMPAGES页

2026年后端开发SpringBot面试题库含答案

一、选择题(共10题,每题2分)

1.在SpringBoot中,以下哪个注解用于标记一个类为配置类?

A.@Component

B.@Configuration

C.@Service

D.@Repository

答案:B

2.SpringAOP中,用于定义切点的注解是?

A.@Before

B.@AfterReturning

C.@Pointcut

D.@Around

答案:C

3.在SpringMVC中,用于处理请求的注解是?

A.@Service

B.@Repository

C.@Controller

D.@Component

答案:C

4.SpringSecurity中,用于配置安全规则的注解是?

A.@EnableWebSecurity

B.@Secured

C.@PreAuthorize

D.@AuthenticationPrincipal

答案:A

5.在Spring事务管理中,以下哪个注解用于声明事务边界?

A.@Transactional

B.@Repository

C.@Service

D.@Component

答案:A

6.SpringBoot中,用于配置数据源的注解是?

A.@Data

B.@C

文档评论(0)

1亿VIP精品文档

相关文档