Spring Exam Certification Reviewer

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/46

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key topics, annotations, and architectural concepts for the Spring and Spring Boot certification exam.

47 Terms

1
New cards

RestTemplate

A Spring class used to write client-side HTTP requests, which can send and receive HTTP data defined using Spring's RequestEntity and ResponseEntity and supports converting Java objects via HttpMessageConverters.

2
New cards

Spring Boot "fat" JAR

An executable archive created by the Spring Boot Maven or Gradle plugin that bundles compiled application classes together with all required dependencies to run standalone.

3
New cards

@Controller

A Spring MVC stereotype annotation (specialization of @Component) that marks classes to be detected via component scanning and makes them eligible for handling web requests.

4
New cards

@ComponentScan

A configuration annotation that specifies base packages for Spring to scan in order to automatically detect and register classes annotated with @Component as beans.

5
New cards

Embedded Servlet Container

A web container (such as Tomcat, Jetty, or Undertow) that Spring Boot starts up automatically by default on port 8080 without requiring an external container installation.

6
New cards

Spring AOP Self-Invocation

The behavior where an internal method call from within the same bean class (such as update1() calling update2()) bypasses the Spring AOP proxy, causing any transaction configuration on the inner method to be ignored.

7
New cards

Constructor Injection

A dependency injection mechanism preferred for unit testing where dependencies are supplied through the class constructor; the @Autowired annotation is optional if only one constructor exists.

8
New cards

spring-boot-devtools

A development dependency that provides features such as automatic application restarts whenever classpath files change during development.

9
New cards

Singleton Scope

The default bean scope in Spring, which ensures that only a single cached instance of the bean definition is created and shared per ApplicationContext.

10
New cards

@PreDestroy

A lifecycle annotation applied to a method within a Spring-managed bean to register it as a callback invoked just before the bean is destroyed by the container.

11
New cards

@WebMvcTest

A Spring Boot test annotation used for testing web slices (Spring MVC controllers); it auto-configures MockMvc and is typically paired with @MockBean to mock required service dependencies.

12
New cards

HealthIndicator

A Spring Boot Actuator interface used to check and report application health status (such as DataSourceHealthIndicator or RabbitHealthIndicator) with default statuses like DOWN, OUT_OF_SERVICE, UNKNOWN, and UP.

13
New cards

@Commit

A test annotation (equivalent to @Rollback(false)) used on transactional test methods to indicate that changes made during the test should be committed to the database rather than rolled back upon completion.

14
New cards

Actuator Meter Primitives

The core measurement types provided by Micrometer in Spring Boot Actuator to collect metrics: Counter, Gauge, Timer, and DistributionSummary.

15
New cards

@SpringBootTest

An integration test annotation that loads the complete ApplicationContext, expecting a single @SpringBootConfiguration class in the application when no configuration class is explicitly declared.

16
New cards

UserDetailsService

A core Spring Security interface implemented to retrieve user details (username, password, authorities) from custom storage such as a relational database, LDAP, or an in-memory store.

17
New cards

Spring Boot Auto-Configuration

A mechanism configured via META-INF/spring.factories using @Conditional annotations that automatically provides pre-configured beans before or after user-defined components.

18
New cards

@ResponseStatus

An annotation placed on controller handler methods to set the HTTP response status code directly (e.g., @ResponseStatus(HttpStatus.NO_CONTENT) for status code 204).

19
New cards

@AfterReturning Advice

An aspect-oriented advice type that executes only after an advised target method returns normally without throwing an unhandled exception.

20
New cards

Spring Data

An umbrella project that dramatically reduces boilerplate data access code and provides consistent repository abstractions across relational (JPA, JDBC) and NoSQL stores (MongoDB, Neo4j, Redis).

21
New cards

Default Rollback Rule

The declarative transaction management rule where transactions roll back automatically when any uncaught, unchecked exception (RuntimeException or Error) is thrown.

22
New cards

@DirtiesContext

A testing annotation indicating that the underlying Spring ApplicationContext has been modified during the test execution and must be closed and removed from the context cache.

23
New cards

REST Resource Updating

A REST architectural convention where an existing resource identified by an ID is updated by sending an HTTP PUT request directly to its URI path (e.g., PUT /orders/1234).

24
New cards

@Transactional

An annotation defining transactional boundaries on methods or classes, supporting optional configuration attributes such as propagation, isolation, timeout, readOnly, and rollbackFor.

25
New cards

@Configuration Bean Caching

The CGLIB-enhanced behavior in full @Configuration classes where direct invocations of @Bean methods return the already instantiated singleton bean instance rather than creating new ones.

26
New cards

@Qualifier

An annotation used alongside @Autowired on fields, constructors, or setter parameters to specify exactly which bean identifier should be injected when multiple candidates match by type.

27
New cards

@SpringBootApplication

A convenience composed annotation that combines @SpringBootConfiguration, @EnableAutoConfiguration, and @ComponentScan on the main application class.

28
New cards

ApplicationContext

The central interface representing the Spring IoC container, which encapsulates the BeanFactory, loads bean definitions, manages singleton lifecycles, and publishes application events.

29
New cards

Pointcut

A predicate expression in AOP that selects one or more join points (such as method executions matching specific visibility, return types, names, or annotations) to apply advice.

30
New cards

@PreAuthorize

A Spring Security method-level annotation that evaluates an expression before method invocation to restrict access based on roles, permissions, or user identity.

31
New cards

@PropertySource

An annotation placed on Java configuration classes to contribute name/value property pairs from an external file to the Spring Environment.

32
New cards

@PathVariable

A Spring MVC annotation used to bind URI template variable segments (e.g., /accounts/{id}) to method arguments inside controller request-handling methods.

33
New cards

Spring Security URL Ordering

The configuration rule stating that URL patterns in authorizeRequests() must be listed from most specific pattern first to least specific pattern last.

34
New cards

Security Filters

A chain of servlet filters managed by Spring Security that intercept HTTP requests to drive authentication, manage logout capabilities, and enforce authorization.

35
New cards

RowMapper

A functional interface in Spring JDBC used by JdbcTemplate to map each individual row of a ResultSet to a target domain object.

36
New cards

Spring Boot Starter

A curated set of convenient dependency descriptors grouped under a single artifact (such as spring-boot-starter-web) to pull in coordinated libraries needed for a specific feature.

37
New cards

@ActiveProfiles

A class-level test annotation used to declare which bean definition profiles should be active when building the ApplicationContext for an integration test.

38
New cards

BeanPostProcessor

A Spring extension point whose callbacks (postProcessBeforeInitialization and postProcessAfterInitialization) allow custom modification or proxying of new bean instances during their initialization phase.

39
New cards

Actuator /info Endpoint

A Spring Boot Actuator endpoint used to expose general application, git, or build information that is disabled by default.

40
New cards

@TestPropertySource

An annotation that configures inlined test properties or alternative property files for integration tests, having higher precedence than standard property sources.

41
New cards

@MockBean

A Spring Boot test annotation used to define a Mockito mock for a bean inside the ApplicationContext, automatically replacing any existing bean of that type.

42
New cards

DelegatingPasswordEncoder

Spring Security's default password encoder, which stores passwords prefixed with an algorithm identifier in the format {id}encodedPassword to enable seamless migration across hashing strategies.

43
New cards

Propagation.REQUIRES_NEW

A transaction propagation setting that always starts a brand new physical transaction, suspending any existing transaction until the new transaction completes.

44
New cards

@ConfigurationProperties

An annotation for type-safe hierarchical external configuration binding that supports relaxed binding (kebab-case, camelCase) but does not support SpEL expressions.

45
New cards

@Around Advice

The most powerful AOP advice type that wraps the target method invocation via a ProceedingJoinPoint, enabling it to alter return values, measure execution time, or swallow exceptions.

46
New cards

BeanFactoryPostProcessor

A Spring container extension interface (e.g., PropertySourcesPlaceholderConfigurer) that allows reading and modifying bean definition metadata before any bean instances are constructed.

47
New cards

@DataJpaTest

A Spring Boot slice test annotation that focuses exclusively on JPA components, auto-configuring an in-memory database by default and providing a TestEntityManager bean.