1/46
Vocabulary flashcards covering key topics, annotations, and architectural concepts for the Spring and Spring Boot certification exam.
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.
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.
@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.
@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.
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.
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.
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.
spring-boot-devtools
A development dependency that provides features such as automatic application restarts whenever classpath files change during development.
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.
@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.
@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.
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.
@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.
Actuator Meter Primitives
The core measurement types provided by Micrometer in Spring Boot Actuator to collect metrics: Counter, Gauge, Timer, and DistributionSummary.
@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.
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.
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.
@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).
@AfterReturning Advice
An aspect-oriented advice type that executes only after an advised target method returns normally without throwing an unhandled exception.
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).
Default Rollback Rule
The declarative transaction management rule where transactions roll back automatically when any uncaught, unchecked exception (RuntimeException or Error) is thrown.
@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.
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).
@Transactional
An annotation defining transactional boundaries on methods or classes, supporting optional configuration attributes such as propagation, isolation, timeout, readOnly, and rollbackFor.
@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.
@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.
@SpringBootApplication
A convenience composed annotation that combines @SpringBootConfiguration, @EnableAutoConfiguration, and @ComponentScan on the main application class.
ApplicationContext
The central interface representing the Spring IoC container, which encapsulates the BeanFactory, loads bean definitions, manages singleton lifecycles, and publishes application events.
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.
@PreAuthorize
A Spring Security method-level annotation that evaluates an expression before method invocation to restrict access based on roles, permissions, or user identity.
@PropertySource
An annotation placed on Java configuration classes to contribute name/value property pairs from an external file to the Spring Environment.
@PathVariable
A Spring MVC annotation used to bind URI template variable segments (e.g., /accounts/{id}) to method arguments inside controller request-handling methods.
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.
Security Filters
A chain of servlet filters managed by Spring Security that intercept HTTP requests to drive authentication, manage logout capabilities, and enforce authorization.
RowMapper
A functional interface in Spring JDBC used by JdbcTemplate to map each individual row of a ResultSet to a target domain object.
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.
@ActiveProfiles
A class-level test annotation used to declare which bean definition profiles should be active when building the ApplicationContext for an integration test.
BeanPostProcessor
A Spring extension point whose callbacks (postProcessBeforeInitialization and postProcessAfterInitialization) allow custom modification or proxying of new bean instances during their initialization phase.
Actuator /info Endpoint
A Spring Boot Actuator endpoint used to expose general application, git, or build information that is disabled by default.
@TestPropertySource
An annotation that configures inlined test properties or alternative property files for integration tests, having higher precedence than standard property sources.
@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.
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.
Propagation.REQUIRES_NEW
A transaction propagation setting that always starts a brand new physical transaction, suspending any existing transaction until the new transaction completes.
@ConfigurationProperties
An annotation for type-safe hierarchical external configuration binding that supports relaxed binding (kebab-case, camelCase) but does not support SpEL expressions.
@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.
BeanFactoryPostProcessor
A Spring container extension interface (e.g., PropertySourcesPlaceholderConfigurer) that allows reading and modifying bean definition metadata before any bean instances are constructed.
@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.