Fact-checked by Grok 2 weeks ago

Spring Framework

The Spring Framework is an open-source for the platform that provides comprehensive infrastructure support for developing modern, scalable enterprise applications, emphasizing (DI) and (IoC) to simplify configuration and promote . Created by Rod Johnson in 2003 as a response to the perceived complexity and over-engineering of early J2EE specifications, it originated from ideas in Johnson's book Expert One-on-One J2EE Design and Development and evolved into a full framework with the release of version 1.0 in 2004. At its core, the framework offers a lightweight container for managing application objects through DI, enabling developers to focus on business logic while handling cross-cutting concerns like transaction management, security, and data access. It is modular, comprising about 20 distinct modules organized into key areas: the Core Container (including Beans, Core, Context, and Expression Language for foundational IoC and configuration); Data Access/Integration (supporting JDBC, ORM, JMS, and transaction management); Web (for servlet-based and reactive web applications); AOP and Instrumentation (for aspect-oriented programming and JVM integration); Messaging (for asynchronous communication); and Testing (for unit and integration testing). This modular design allows selective use of components, making it adaptable to various deployment platforms, from traditional servers to cloud-native environments. The framework's design philosophy prioritizes simplicity, testability, and non-invasiveness, promoting portable service abstractions and POJO-based development to reduce and . Over its two decades, Spring has influenced the Java ecosystem profoundly, powering projects like for rapid application development, for authentication, and Spring Data for repository abstractions, and it continues to evolve with support for modern standards like and . As of November 2025, the current production version is 7.0.0, requiring 17 or later and aligning with Jakarta EE 11 for enhanced performance and cloud readiness.

History and Development

Origins and Key Contributors

The Spring Framework was founded by Rod Johnson in 2002 as a response to the perceived complexities and inefficiencies in early 2 Platform, Enterprise Edition (J2EE) development practices. Johnson's motivation stemmed from his experiences as a consultant, where he observed that enterprise applications were often overburdened by invasive specifications, particularly the heavy use of Enterprise JavaBeans (EJBs), which required extensive and tied to container-specific implementations. This critique was detailed in his book Expert One-on-One J2EE Design and Development, published in October 2002, which advocated for simpler, more maintainable approaches using plain old objects (POJOs) and introducing concepts like to decouple components and promote testability. The accompanying framework code in the book laid the groundwork for what would become , aiming to streamline enterprise development by providing lightweight alternatives to J2EE standards. The initial open-source release of the Spring Framework occurred in June 2003, distributed under the 2.0 to encourage broad adoption and community contributions. This early version focused on core mechanisms and , marking a shift toward modular, non-intrusive application development. The framework quickly gained traction among developers seeking to avoid the verbosity of traditional J2EE while retaining its power for building robust enterprise systems. Key early contributors included Rod Johnson as the primary architect, alongside Juergen Hoeller, who joined shortly after the initial release and became instrumental in enhancing the framework's core features, such as its bean factory and configuration support. The project was initially stewarded by Interface21, a company co-founded by Johnson in 2004 to provide commercial support and services around Spring. Interface21 was renamed SpringSource in November 2007 and acquired by in 2009 for $420 million, which provided resources for further professionalization while keeping the core project open-source. In 2013, SpringSource was integrated into , a involving , , and , before returning under 's direct stewardship. These contributors emphasized collaborative development, with Hoeller's full-time dedication helping transform Spring from an experimental codebase into a foundational ecosystem tool. Following 's acquisition by in November 2023, the project is now stewarded under 's portfolio.

Major Releases and Evolution

The Spring Framework's evolution has been marked by a series of major releases that have progressively enhanced its capabilities, aligning with advancements in the ecosystem and enterprise application development needs. Each version has introduced foundational features while maintaining where possible, enabling widespread adoption in production environments. Version 1.0, released on March 24, 2004, established the framework's core by introducing the (IoC) container for and basic (AOP) support, providing a lightweight alternative to heavy-weight J2EE specifications. Spring Framework 2.0, launched on October 3, 2006, expanded configuration flexibility with XML namespaces, added annotation-based configuration to reduce , and integrated more deeply with for advanced AOP capabilities. The 3.0 release in December 2009 brought Java-based configuration via JavaConfig, introduced the Spring Expression Language (SpEL) for dynamic expressions, and added support for RESTful web services, facilitating more declarative and concise application setup. Version 4.0, released on December 12, 2013, provided first-class support for Java 8 features like lambdas and streams, incorporated for real-time communication, and emphasized modularization to allow selective inclusion of components. Spring 5.0, which went general availability on September 28, 2017, established Java 8 as the minimum baseline and introduced paradigms through Spring WebFlux, enabling non-blocking, asynchronous applications built on Project Reactor. In November 2022, version 6.0 marked a significant shift by migrating to 9+ APIs from Java EE, and added native image support via for faster startup times and reduced memory footprints in cloud-native deployments. The 6.2.x series, culminating in stable releases through 2025 including 6.2.12 on October 16, 2025, incorporated virtual threads from Java 21 for scalable concurrency, enhanced observability with Micrometer integrations for metrics and tracing, and served as the stable branch prior to the 7.0 release. Version 7.0, released on November 13, 2025, focuses on versioning for better client compatibility, enhanced concurrency support including @ConcurrencyLimit and integration with Java's virtual threads, built-in resilience patterns like retries and concurrency limits, and optimizations for Java 17 and later (recommending Java 25), including tighter integration with 11. It is the current stable release as of November 2025. Throughout its history, the framework's development has transitioned across organizational ownership: originating under Interface21 in 2004, rebranded as SpringSource in November 2007, acquired by in August 2009 for $420 million, integrated into in 2013, and following 's acquisition by in November 2023, now stewarded under 's portfolio.

Core Principles

Inversion of Control and Dependency Injection

(IoC) is a core design principle in the Spring Framework where the framework assumes responsibility for managing the lifecycle and configuration of application objects, known as beans, thereby inverting the traditional flow of control from the application code to the container. This approach promotes by externalizing the creation and assembly of objects, allowing developers to focus on rather than infrastructure concerns. The Spring IoC container, implemented primarily through the BeanFactory and ApplicationContext interfaces, reads configuration metadata to instantiate, configure, and assemble beans as needed. Dependency Injection (DI) represents a specific implementation of IoC in Spring, wherein dependencies between objects are provided externally by the container rather than the objects creating or locating them themselves. This technique enhances modularity, testability, and maintainability by making dependencies explicit and configurable. Spring supports three primary DI mechanisms: constructor injection, setter injection, and field injection. Constructor injection involves passing dependencies as arguments to a bean's constructor, ensuring that the bean is fully initialized with required upon creation and promoting immutability. For example, a class might declare a constructor for a , which the container resolves and injects during instantiation; this approach is preferred for mandatory dependencies as it prevents partial object states. Setter injection, in contrast, uses setter methods to inject dependencies after the bean is instantiated, allowing for optional or reconfigurable dependencies but risking incomplete initialization if setters are not called. An example would be annotating a setter method with @Autowired to wire a logger dependency. Field injection directly injects dependencies into private fields using annotations like @Autowired, bypassing getters and setters for simplicity, though it complicates testing due to hidden dependencies and is generally discouraged for production code. Beans in the Spring IoC container have configurable scopes that determine their lifecycle and instance sharing. The singleton scope, the default, ensures a single shared instance per container, suitable for stateless services like DAOs. scope creates a new instance each time the bean is requested, ideal for stateful objects requiring isolation. In web applications, request scope ties an instance to the lifecycle of an HTTP request, session scope to an HTTP session, application scope to the ServletContext, and scope to a WebSocket session, enabling context-specific behaviors without manual management. Spring provides multiple configuration options for defining beans and their dependencies, evolving from XML-based to more declarative approaches. XML configuration uses schema-defined elements to specify class names, dependencies, and properties, offering fine-grained control but verbosity. Annotation-based configuration leverages stereotypes like @Component, @Service, @Repository, and @Controller to mark classes for automatic detection via component scanning, with @Autowired, @Inject, or @Resource annotations handling injection points on fields, methods, or constructors. Java-based configuration, introduced as an alternative, employs classes to define beans programmatically through methods, which return instances wired by the , providing and reduced XML reliance. To manage bean lifecycles, Spring supports callbacks that allow custom initialization and cleanup logic. Beans can implement the InitializingBean interface to override the afterPropertiesSet() method for post-dependency setup or the DisposableBean interface for the destroy() method on shutdown. Alternatively, the JSR-250 standard annotations @PostConstruct and @PreDestroy can be placed on methods for initialization after dependency injection and cleanup before destruction, respectively, offering a portable and less intrusive option. These callbacks execute in a defined order: dependency injection first, followed by @PostConstruct or afterPropertiesSet(), and symmetrically for destruction.

Aspect-Oriented Programming

Aspect-oriented programming (AOP) in the Spring Framework provides a way to modularize crosscutting concerns, such as , , and caching, that span multiple objects and modules, complementing by separating these concerns from core business logic. This approach allows developers to declare common behaviors declaratively without scattering code throughout the application, addressing limitations in traditional where such concerns often lead to duplication and reduced maintainability. Spring's AOP implementation focuses on method-level interception for Spring-managed beans, enabling concise and powerful definitions using either schema-based or annotations. Core concepts in Spring AOP include aspects, which serve as modular units encapsulating crosscutting logic, typically implemented as regular classes or classes annotated with @Aspect; join points, which represent well-defined points in program execution, such as method calls or executions on Spring beans; pointcuts, which are expressions (using AspectJ's pointcut language) that match sets of join points to determine where advice applies; and advice, which defines the specific actions an aspect takes at those join points. Advice comes in several types: before advice executes prior to the join point but cannot prevent its execution unless an exception is thrown; after returning advice runs only if the join point completes successfully; after throwing advice triggers on exceptions; after (finally) advice executes regardless of outcome; and around advice, the most versatile, wraps the join point to control its execution flow, including optional suppression or modification. These elements work together to weave behaviors transparently around target objects. Spring AOP employs a proxy-based mechanism for weaving aspects at runtime, without requiring compile-time modifications or special class loaders. By default, it uses JDK dynamic proxies for target objects that implement one or more interfaces, allowing interception of interface method calls. For classes lacking interfaces, Spring falls back to CGLIB (Code Generation Library) to generate subclasses that intercept method invocations, ensuring broad compatibility while maintaining pure Java implementation. This proxying approach limits Spring AOP to method execution join points on Spring beans but covers the majority of enterprise needs efficiently. To extend capabilities beyond proxies, Spring integrates seamlessly with , a full-featured AOP extension for , supporting annotation-driven development via annotations like @Aspect for aspect classes and @Pointcut for defining reusable pointcut expressions. This style leverages AspectJ's type-safe pointcut language while relying on Spring's runtime infrastructure for weaving, without needing the AspectJ compiler. For scenarios requiring broader join point support, such as field access or constructor execution, Spring enables load-time weaving (LTW), where aspects are dynamically applied to class files as they load into the JVM, configured via Spring's LoadTimeWeaver bean and an aop.xml descriptor. Common use cases for Spring AOP include applying security to enforce and on methods, caching to store and retrieve results transparently for performance optimization, and custom or to track application behavior without invasive changes to business code. These applications demonstrate AOP's strength in handling orthogonal concerns modularly. Aspects themselves are managed as Spring beans, benefiting from for wiring dependencies like data sources or configuration properties.

Core Modules

Container and Configuration

The Spring Framework's (IoC) container serves as the core runtime environment for managing application objects, known as beans, by handling their instantiation, configuration, assembly, and lifecycle. It enables developers to define beans and their dependencies declaratively, promoting and modularity in applications. The container supports multiple configuration formats, allowing flexibility in how beans are specified and wired together. At the foundation of the IoC container lies the BeanFactory interface, which provides basic functionality for bean instantiation and dependency resolution on demand. BeanFactory is lightweight and suitable for resource-constrained s, as it does not eagerly initialize beans but creates them only when requested via getBean(). In contrast, the ApplicationContext extends BeanFactory with advanced enterprise features, including hierarchical contexts for parent-child relationships that allow bean inheritance across contexts, automatic resource loading from various sources like the or , and built-in publishing for application events such as context refresh or close. Hierarchical contexts enable modular configurations, where child contexts can override or extend beans from parent contexts without duplication. ApplicationContext also supports (i18n) through message sources and abstraction for profiles and properties, making it the preferred choice for most applications. Beans are defined within the using various mechanisms to specify their classes, scopes, dependencies, and initialization details. In XML-based configuration, beans are declared using the <bean> element, which includes attributes like id, class, scope, and depends-on to outline the bean's identity, implementation, lifecycle scope (e.g., or ), and prerequisites. For annotation-driven approaches, classes are annotated with @Component, @Service, @Repository, or @Controller, and the scans specified packages via @ComponentScan to detect and register these as beans automatically. Programmatic definition is achieved through the BeanDefinitionRegistry , where developers can register custom BeanDefinition objects at , offering fine-grained control for dynamic or conditional bean creation. Dependency injection in the container is facilitated through autowiring, which automatically resolves and injects collaborators into based on predefined modes. The byName mode matches dependencies by bean names against or constructor names, while byType resolves them by matching types, potentially requiring additional qualifiers if multiple candidates exist. Constructor autowiring uses the bean's constructor to inject dependencies, ensuring immutability and mandatory resolution, and is the default mode for beans with a single constructor argument. To resolve ambiguities in byType or constructor injection, the @Qualifier specifies the exact bean name or type, overriding default matching rules for precise wiring. Spring supports environment-specific configurations through profiles and property sources, allowing beans to be activated conditionally based on runtime contexts like , testing, or . The @Profile on classes or @Bean methods limits registration to active profiles, set via system properties, environment variables, or programmatically, enabling segregated configurations without code duplication. Externalized properties are managed through PropertySources, which integrate placeholders like ${property.key} into bean definitions, sourcing values from files, JVM arguments, or custom providers for flexible, non-hardcoded settings. For complex object creation beyond simple instantiation, the container employs FactoryBean implementations, which act as intermediaries to produce and configure objects dynamically. A FactoryBean defines a getObject() method to return the actual bean instance, allowing encapsulation of creation logic such as generation or resource pooling, while the container manages the FactoryBean itself as a regular bean. Method injection addresses scenarios where singletons need to reference non-singleton (e.g., ) dependencies, using lookup methods annotated with @Lookup or XML <lookup-method> to dynamically resolve fresh instances at runtime without altering the singleton's state. This technique leverages bytecode generation to override methods, ensuring thread-safe access to transient dependencies in long-lived beans.

Expression Language and SpEL

The Spring Expression Language (SpEL) is a powerful expression language introduced in Spring Framework 3.0 that supports querying and manipulating object graphs at runtime. Its syntax is similar to Unified EL, encompassing literals, relational operators, arithmetic operations, logical operators, and string concatenation, while offering additional capabilities such as method invocation and basic string templating. SpEL enables dynamic evaluation of expressions within Spring configurations, allowing for flexible and concise definitions without extensive boilerplate code. SpEL is commonly used in annotations for runtime value injection and conditional logic. The @Value annotation, for instance, supports SpEL expressions to inject values from properties, system properties, or computed results into fields, methods, or parameters. Similarly, @Bean methods can incorporate SpEL for dynamic bean creation based on contextual data, such as environment variables or bean references. These usages promote by deferring value resolution until application startup or execution. Key features of SpEL include support for variables, which are referenced using the # prefix (e.g., #var), allowing access to context-specific data like root objects or custom variables set via EvaluationContext. Type is handled through the EvaluationContext interface, which resolves , , and fields while performing necessary conversions to match target types. Collection operations are enhanced with projection (![] syntax to extract elements matching a subexpression) and selection (.?[ ] to filter collections based on criteria). The safe navigation operator (?.) prevents NullPointerExceptions by returning if a or on a null object is attempted. SpEL integrates seamlessly across Spring components, including bean definitions for dynamic property setting in XML or annotation-based configurations, security expressions in Spring Security for authorization rules (e.g., @PreAuthorize), and AOP pointcuts for conditional advice application. In bean definitions, it supports conditional creation, such as enabling a bean only if a system property meets a threshold:
java
@Bean
@ConditionalOnExpression("#{systemProperties['java.version'] > '17'}")
public MyBean myBean() {
    return new MyBean();
}
This example evaluates the Java version at runtime to determine bean instantiation. Overall, SpEL's extensibility via custom resolvers and compilers enhances its utility for complex, runtime-adaptive applications.

Data Access and Integration

JDBC and ORM Support

Spring's JDBC support provides abstractions that simplify database access by handling , , and exception translation, making it easier to perform operations on relational databases. The JdbcTemplate class serves as the central component for executing SQL queries, updates, and batch operations, automatically managing connections, statements, and result sets while translating JDBC-specific exceptions into Spring's unchecked DataAccessException hierarchy. For instance, it offers methods like query() for retrieving data, update() for modifications, and batchUpdate() for efficient bulk inserts or updates, reducing the need for manual try-catch-finally blocks. DAO support in Spring facilitates the implementation of data access objects through base classes like JdbcDaoSupport and the @Repository annotation, which enables automatic exception translation and component scanning for repositories. The @Repository marker stereotype identifies classes as data access components, allowing Spring to intercept and convert vendor-specific exceptions into the portable DataAccessException types, such as DataAccessResourceFailureException or DataIntegrityViolationException. Connection management is handled via configuration, which Spring obtains through , supporting JNDI lookups for environments and with connection pools like HikariCP for efficient handling. HikariCP is preferred for its performance and concurrency features, configurable as the default pooling implementation in but adaptable in core Spring applications. For native SQL operations, NamedParameterJdbcTemplate extends JdbcTemplate to support named parameters (e.g., :name in queries), improving code readability over positional placeholders and preventing when bound properly. Similarly, SimpleJdbcInsert simplifies INSERT statements by allowing table name specification and automatic column inference from entity properties, executing via the underlying JdbcTemplate. Spring's ORM support integrates with frameworks like JPA, Hibernate, and EclipseLink, providing resource management, DAO implementations, and seamless transaction participation through EntityManagerFactory and transaction managers. For JPA, Spring offers JpaRepository interfaces via Spring Data JPA, which extend CrudRepository to provide methods for entity persistence, querying, and pagination, with built-in support for Hibernate and EclipseLink as providers. These integrations ensure ORM operations are wrapped in Spring transactions when annotated with @Transactional, aligning with the framework's declarative transaction model.

Messaging and JMS

Spring's messaging support provides abstractions for integrating Java Message Service () into applications, enabling simplified handling of asynchronous communication without direct dependency on vendor-specific APIs. This framework abstracts the complexity of JMS sessions, connections, and , allowing developers to focus on while supporting both point-to-point and publish-subscribe messaging patterns. By leveraging Spring's , applications can configure and inject JMS resources declaratively, promoting and testability. Central to this support is the JmsTemplate class, which facilitates synchronous sending and receiving of JMS messages. It handles resource acquisition and release automatically, converting exceptions to Spring's unchecked hierarchy for consistent error management. For sending, methods like convertAndSend serialize objects into messages using built-in converters, such as SimpleMessageConverter for text or MappingJackson2MessageConverter for payloads. Receiving operations, such as receiveAndConvert, block until a message arrives and deserialize it back to domain objects, making it suitable for request-reply scenarios. An example usage involves injecting JmsTemplate into a service and invoking jmsTemplate.convertAndSend("queueName", order) to dispatch an order object. For asynchronous message consumption, Spring introduces message-driven Plain Old Java Objects (POJOs) via the @JmsListener annotation, introduced in Spring 4.1. This annotation marks methods to automatically register as JMS listeners, with Spring managing the underlying MessageListenerContainer for thread pooling, connection recovery, and error handling. Listeners can participate in transactions through container configuration, ensuring message acknowledgment aligns with application-level commits, though detailed transaction semantics are handled elsewhere. Error handling is customizable via @JmsListener attributes like errorHandler or global resolvers, allowing retries or dead-letter queue routing for failed processing. A typical listener might be annotated as @JmsListener(destination = "inputQueue") public void processMessage([Order](/page/Order) order) { ... }, where the method parameter is automatically converted from the incoming JMS message. Spring integrates with popular message brokers through JMS-compliant providers and dedicated projects. For Apache ActiveMQ, configuration uses JMS ConnectionFactory implementations like ActiveMQConnectionFactory, enabling embedded or remote broker setups. RabbitMQ support comes via the Spring AMQP project, which provides RabbitTemplate analogous to JmsTemplate and @RabbitListener for AMQP-specific messaging, bridging non-JMS protocols. Apache Kafka integration is offered through Spring for Apache Kafka, supporting Kafka producers and consumers with KafkaTemplate for sending and @KafkaListener for reactive or batch consumption. These integrations share Spring's abstraction layer, allowing applications to switch brokers with minimal code changes. Connection factories are configured as Spring beans, often auto-configured in via properties like spring.jms.* for vendor selection and pooling. For instance, an ActiveMQConnectionFactory can be defined with @Bean and properties for broker , username, and password, then injected into JmsTemplate or listener containers. This setup ensures connections are cached and reused, with support for XA transactions where messages participate alongside other resources. For more advanced messaging patterns, Spring ties into the Spring Integration module, which extends support with components like message channels for producers and consumers, routers for conditional message dispatching based on headers or payloads, and transformers for modifying content en route. These elements enable , such as content-based routing or enrichment, while building on core abstractions.

Transaction and Batch Processing

Transaction Management

Spring's transaction management provides a consistent for handling s across various transaction APIs, including JTA, JDBC, Hibernate, and JPA, enabling both declarative and programmatic approaches to ensure in enterprise applications. This simplifies demarcation, , and resource synchronization without requiring an for basic cases. By leveraging the Spring container, developers can focus on while the framework manages properties like atomicity, , , and . Declarative transaction management in Spring primarily uses the @Transactional annotation, which declares transactional semantics on classes, methods, or interfaces and is processed via AOP proxies to intercept calls and apply transaction advice. The annotation's propagation attribute controls transaction boundaries, with PROPAGATION_REQUIRED (the default) joining an existing transaction or creating a new one if none exists, ensuring seamless participation in outer transactions. In contrast, PROPAGATION_REQUIRES_NEW suspends any existing transaction and starts a new one, allowing independent commit or rollback independent of the outer context. The isolation attribute specifies the transaction's isolation level, such as Isolation.DEFAULT (using the database's default), READ_COMMITTED (preventing dirty reads), REPEATABLE_READ (avoiding non-repeatable reads), or SERIALIZABLE (full isolation to prevent phantom reads). Rollback rules are configured via rollbackFor and noRollbackFor attributes; by default, unchecked exceptions (like RuntimeException) trigger rollback, while checked exceptions do not, but custom rules can override this based on exception types or patterns. At the core of Spring's transaction infrastructure is the PlatformTransactionManager interface, which abstracts transaction coordination for specific resources. For JDBC-based applications, DataSourceTransactionManager binds a JDBC Connection from a DataSource to the current thread and manages its transaction lifecycle. For JPA, JpaTransactionManager integrates with a single EntityManagerFactory, handling EntityManager transactions and supporting direct JDBC access within the same transaction. In contrast to declarative approaches, programmatic transaction management offers fine-grained control using the TransactionTemplate class, which simplifies demarcation through a callback that handles begin, commit, and automatically. Developers inject a TransactionTemplate configured with a PlatformTransactionManager and invoke its execute method with a TransactionCallback, avoiding compared to direct usage like JTA. This method suits scenarios requiring conditional transaction logic not easily expressed declaratively. Spring supports chained or nested transactions through propagation types like PROPAGATION_NESTED, which uses database savepoints to allow inner operations to to a specific point without affecting the outer . Savepoints act as markers within the , enabling partial for nested calls while preserving the overall integrity upon successful completion. For distributed transactions spanning multiple resources, Spring integrates with JTA via JtaTransactionManager, supporting XA protocols for two-phase commit coordination. Embedded transaction managers like Atomikos provide non-XA alternatives or full XA support without an external server, allowing declarative @Transactional usage across XA-compliant resources such as multiple databases.

Batch Framework

Spring Batch is a lightweight, comprehensive framework within the Spring ecosystem designed to enable the development of robust batch applications for processing large volumes of data, such as operations vital to enterprise systems. It provides reusable functions for /tracing, transaction management, job processing statistics, job restart, skip, and , allowing developers to focus on rather than infrastructure concerns. The framework follows a , modeling batch concepts like jobs and steps to support restartability, scalability, and fault tolerance in production environments. At its core, Spring Batch organizes processing into jobs and steps, forming the foundational architecture for batch workflows. A job represents a complete batch process, composed of one or more independent steps executed sequentially or in parallel, with each step encapsulating a specific phase of data handling. Steps leverage three primary interfaces to implement the read-process-write pattern: ItemReader, which reads data one item at a time from sources like files, databases, or queues, including composite readers for from multiple sources (introduced in Spring Batch 5.2); ItemProcessor, an optional component that transforms or validates individual items; and ItemWriter, which writes processed items in bulk to destinations such as databases or files. This pattern promotes modularity, enabling developers to configure readers, processors, and writers as Spring beans for reuse across jobs. Spring Batch primarily employs chunk-oriented processing for steps, where data is read sequentially, processed into configurable chunks, and written within boundaries to ensure atomicity and consistency. The chunk size determines the number of items processed per transaction—typically set to balance memory usage and performance, with a default of 1 if unspecified—and can be adjusted via the chunk() method in step configuration. To enhance , the framework supports skip and retry policies: skips allow non-fatal exceptions to be ignored up to a configurable limit (default 10), logging the skipped items for later review, while retries enable automatic reattempts of failed items a specified number of times for transient errors, excluding fatal exceptions like data integrity violations. These mechanisms, combined with transaction rollback on chunk failure, provide robust error handling without halting the entire job. Central to job orchestration is the JobRepository, a persistence mechanism that stores metadata about job and step executions, including status, parameters, and execution history, to enable features like restart and monitoring. By default, it uses JDBC to interact with relational databases via Spring's JdbcTemplate, creating tables for jobs, steps, and executions, but can be configured with JPA for object-relational mapping in environments preferring ORM-based persistence, MongoDB for NoSQL support (introduced in Spring Batch 5.2), or a resourceless in-memory implementation for testing and lightweight use cases. This metadata allows jobs to resume from the last successful step upon failure, ensuring idempotency in long-running processes. For scaling large-scale workloads, Spring Batch offers several techniques to distribute processing. Partitioning divides a step into sub-steps (partitions) based on data ranges or keys, executed in parallel either within a single JVM or across multiple processes, with a master step coordinating workers via the JobRepository. Multi-threaded steps enable concurrent item processing within a single process using a Spring TaskExecutor, configurable with thread counts and synchronization to avoid race conditions on shared resources. Remote chunking extends this by offloading chunk execution to remote workers over messaging (e.g., ), where the master dispatches chunks and aggregates results, ideal for distributed environments. These approaches can achieve linear for data-intensive tasks, limited primarily by infrastructure constraints. Integrations enhance Spring Batch's usability in enterprise settings. Scheduling is achieved by combining jobs with Spring's TaskScheduler or @Scheduled annotations, triggering executions at defined intervals without replacing dedicated schedulers like . The TaskExecutor integrates natively for asynchronous and multi-threaded execution within steps, providing management for . Monitoring leverages Micrometer-based metrics for job durations, item counts, and error rates, exposable via actuators for integration with tools like , alongside JobRepository queries for execution history and listener interfaces for custom auditing. Transaction boundaries in batch steps align with Spring's declarative management for commit intervals matching chunk sizes.

Web and Reactive Support

Spring MVC Framework

Spring Web MVC, often referred to as Spring MVC, is the original web framework within the Spring ecosystem, built on the Jakarta Servlet API to enable the development of web applications using the Model-View-Controller (MVC) architectural pattern. It provides a flexible and extensible mechanism for handling HTTP requests, processing business logic in controllers, and rendering views, all while leveraging Spring's for managing components. Since its inception with the Spring Framework, Spring MVC has been the go-to solution for traditional, servlet-based web applications, emphasizing imperative, blocking I/O operations. At the core of Spring MVC is the DispatcherServlet, which acts as the front controller responsible for coordinating the entire request-response lifecycle. Upon receiving an HTTP request, the DispatcherServlet consults a HandlerMapping to identify the appropriate handler (typically a controller method) based on the request's URL, HTTP method, and other attributes. Once the handler is selected, a HandlerAdapter invokes the handler method, which processes the request, populates a model with , and returns a logical view name. Finally, a ViewResolver translates the logical view name into a concrete view implementation (such as JSP or ), which renders the response back to the client. This ensures between components, allowing customization of each step through Spring's configuration. Controllers in this setup are instantiated and managed as Spring beans via the () container. Spring MVC supports an annotation-driven , where developers use to define controllers and map requests declaratively. The @Controller annotation marks a class as a controller, while @RequestMapping (or its specialized variants like @GetMapping and @PostMapping) annotates to handle specific HTTP requests, including support for path variables (e.g., /users/{userid} to extract userid as a parameter), query parameters via @RequestParam, and to select response formats based on the client's Accept header. For example:
java
@Controller
public class UserController {
    @RequestMapping(value = "/users/{id}", method = RequestMethod.GET)
    public String getUser(@PathVariable Long id, Model model) {
        // Retrieve user by id and add to model
        return "userProfile"; // Logical view name
    }
}
This approach simplifies compared to traditional XML mappings. To enable annotation-based features, Spring MVC relies on annotation-driven , which can be activated via the <mvc:annotation-driven /> element in XML-based setups or the @EnableWebMvc annotation in Java-based classes. These mechanisms automatically register necessary components, such as RequestMappingHandlerMapping for URL-to-method mapping and RequestMappingHandlerAdapter for method invocation, while also enabling advanced features like and validation. In Java , @EnableWebMvc imports the DelegatingWebMvcConfiguration, which delegates to sub-configurations for MVC-specific beans. Input validation in Spring MVC integrates seamlessly with the Bean Validation API (JSR-303, extended by JSR-380), allowing developers to annotate domain objects with constraints like @NotNull or @Size. By applying the @Valid annotation to controller method parameters, Spring automatically triggers validation using a Validator instance, typically LocalValidatorFactoryBean, which bootstraps a JSR-303 provider like Hibernate Validator. Validation errors are captured in a BindingResult object, enabling custom error handling, such as redirecting to an error view or returning error responses. For instance:
java
@PostMapping("/users")
public String createUser(@Valid @ModelAttribute User user, BindingResult result) {
    if (result.hasErrors()) {
        return "userForm"; // Return to form with errors
    }
    // Save user
    return "redirect:/users";
}
This ensures robust without manual validation code. For building RESTful web services, Spring MVC introduces @RestController, a composite annotation that combines @Controller and @ResponseBody to automatically serialize method return values directly into the HTTP response body, bypassing view resolution. This is facilitated by HttpMessageConverters, a chain of converters that handle the transformation between Java objects and HTTP payloads in formats such as (via Jackson) or XML (via JAXB). Developers can customize the converters by registering additional beans, ensuring support for where the response format is determined by the request's Accept header or a path extension. In Spring Boot applications, default converters are auto-configured for common formats, enhancing REST development efficiency.

Spring WebFlux and Reactive Programming

Spring WebFlux is a reactive web framework introduced in Spring Framework 5.0, designed for building non-blocking, asynchronous web applications that handle high concurrency with fewer resources. It supports Reactive Streams back pressure and operates on a fully non-blocking server architecture, enabling scalable applications for scenarios like real-time data streaming and microservices. Unlike traditional synchronous models, WebFlux processes requests asynchronously, allowing threads to be released back to the pool during I/O operations. The reactive model in Spring WebFlux is built on Project Reactor, the default reactive library chosen for its seamless integration and support for . Project Reactor provides two primary types: Mono, representing an asynchronous result of 0 to 1 item, and , for 0 to N items, enabling the composition of asynchronous data streams with operators for transformation, filtering, and error handling. WebFlux leverages non-blocking I/O primarily through the Netty server, though it also supports Undertow and asynchronous 5.0+ containers (such as 10.1 and 11). This setup allows applications to scale efficiently under load, as a small number of threads can manage thousands of concurrent connections without blocking. As of Spring Framework 6.2, WebFlux introduces support for rendering multiple views in a single request or streaming rendered views, facilitating advanced streaming use cases. For defining reactive endpoints, WebFlux extends the annotation-based approach with @RestController, where controller methods can return Mono or types to handle asynchronous responses. For instance, a method annotated with @GetMapping might return a Mono for a single deferred value, automatically serializing it to the HTTP response body once resolved, thus avoiding thread blocking during computation or database calls. This integration ensures that the entire request-response cycle remains non-blocking, with Spring automatically subscribing to the reactive types and managing back pressure. As an alternative to annotated controllers, WebFlux offers Router Functions, a functional programming model for routing and handling requests using immutable contracts. Developers define routes with RouterFunction instances, matching requests via predicates (e.g., path, method, content type) and delegating to HandlerFunction for processing, which typically returns a Mono. This approach promotes and , as routes can be nested or combined declaratively, for example:
java
RouterFunction<ServerResponse> route = RouterFunctions.route()
    .GET("/hello", request -> ServerResponse.ok().bodyValue("[Hello World](/page/Hello_World)!"))
    .build();
Such functions can be registered directly with the RouterFunctionMapping bean, providing a lightweight option for simple APIs without class-based controllers. WebFlux includes robust support for messaging, enhanced with STOMP (Simple Text Oriented Messaging Protocol) for structured communication over WebSockets. Annotated controllers use @MessageMapping to handle incoming STOMP messages, similar to @RequestMapping in MVC, with methods processing <byte[]> payloads reactively via Mono or . For browser compatibility, SockJS provides a fallback , emulating with polling or streaming when native support is unavailable. Session management is handled through SimpMessagingTemplate for broadcasting and user-specific routing, with @SendTo or @SendToUser annotations directing responses to topics or individual sessions, ensuring reactive propagation of messages. Server-sent events (SSE) in WebFlux enable one-way streaming from server to client, ideal for live updates like notifications or progress reports. Endpoints return a Flux from controllers or handler functions, where each event carries data, event type, and optional ID or retry intervals, automatically formatted as text/event-stream MIME type. This leverages Reactor's streaming capabilities for back-pressured, non-blocking delivery. WebFlux integrates with the RSocket protocol for binary, reactive communication, supporting request-response, request-stream, and fire-and-forget patterns over or . In a WebFlux application, RSocket can be exposed via @MessageMapping in controllers or functional handlers, using RSocketRequester for outbound interactions, with payloads wrapped in Mono or for full reactive interoperability. This enables efficient, multiplexed messaging in distributed systems, such as between .

Additional Features

Remote Access and Remoting

Spring Framework facilitates remote access to services through abstractions that simplify the exposure and invocation of beans across distributed systems, primarily via synchronous (RPC) mechanisms. These abstractions decouple application code from underlying transport protocols, enabling developers to configure remoting declaratively using . While earlier versions emphasized Java-specific protocols like RMI, modern usage prioritizes HTTP-based and standards-compliant approaches for . Support for Remote Method Invocation (RMI) in Spring allows services to be exposed as RMI endpoints without direct interaction with RMI registries or stubs. Developers use the RmiServiceExporter to publish a Spring bean as an RMI service and the RmiProxyFactoryBean on the client side to create a for remote invocations, handling exceptions and transparently. This integration leverages Java's built-in RMI infrastructure for Java-to-Java communication over /. However, RMI support has been deprecated since Spring Framework 5.3 due to security vulnerabilities in Java and lack of broader adoption, with full removal in version 6.0. Hessian and Burlap provide lightweight, HTTP-based alternatives for RPC-style remoting, suitable for cross-language scenarios. employs binary over HTTP for efficient data transfer, using HessianServiceExporter to expose services and HessianProxyFactoryBean for client proxies that calls into HTTP requests. Burlap, developed by Caucho , offers a human-readable XML-based variant with analogous classes (BurlapServiceExporter and BurlapProxyFactoryBean), trading efficiency for inspectability. Both protocols avoid the complexity of while supporting any , but like RMI, they rely on and were deprecated in Spring 5.3 for similar security and maintenance reasons, removed in 6.0. The HTTP Invoker protocol enables Java-to-Java remoting over HTTP using Spring's custom serialization format, combining the simplicity of HTTP with Java-specific optimizations. Servers configure HttpInvokerServiceExporter to handle incoming requests, while clients use HttpInvokerProxyFactoryBean to generate proxies that serialize method invocations into HTTP POST bodies. This approach supports Spring's AOP features for remote calls and integrates seamlessly with servlet containers, but it is limited to Java environments. Deprecated in Spring 5.3 and removed in 6.0, it is no longer recommended due to deserialization risks and the preference for RESTful standards. For contemporary REST-based remoting, Spring provides client abstractions to consume HTTP services synchronously or reactively. The RestTemplate class, a synchronous HTTP client, simplifies REST interactions with methods like getForObject and postForEntity, supporting URI templates and automatic marshalling via HttpMessageConverter. However, it was placed in maintenance mode in Spring 5.0 and officially deprecated in 7.0, with migration encouraged to newer alternatives due to its blocking nature. The WebClient, introduced in Spring 5.0, offers a non-blocking, reactive built on Project Reactor, enabling fluent HTTP requests with backpressure handling and integration with Spring WebFlux for scalable remote access. In Spring 6.1, the RestClient emerged as a modern synchronous successor to RestTemplate, providing a builder-style for concise, fluent calls while supporting the same converters and error handling. These clients facilitate remote service invocation in architectures without tying to specific protocols. Spring integrates with gRPC, a high-performance RPC framework developed by , through the dedicated Spring gRPC project, which provides Spring Boot auto-configuration and annotations for service implementation. Developers annotate interfaces with @GrpcService to expose them as gRPC servers, leveraging for schema definition and efficient binary serialization over HTTP/2. Client-side support includes @GrpcClient for injecting stubs, with built-in load balancing and retry mechanisms. This integration aligns gRPC with Spring's and lifecycle management, making it suitable for polyglot requiring low-latency communication. As of version 0.9.0 in 2025, it supports via Micrometer and is progressing toward full GA integration in Spring Boot 4. For SOAP and broader web services, Spring supports integration with , an open-source framework for building RESTful and SOAP services. CXF embeds within applications via XML or Java configuration, using JaxWsServerFactoryBean or annotations like @WebService to publish endpoints, while clients employ JaxWsProxyFactoryBean for dynamic proxies. The CXF starter automates endpoint scanning and security configuration, enabling seamless exposure of beans as JAX-WS or JAX-RS services over HTTP. This combination leverages CXF's extensibility for WS-* standards while benefiting from 's inversion of control.

Testing and Instrumentation

The Spring Framework provides robust support for unit and integration testing through its TestContext framework, which manages application contexts and facilitates in test environments. This framework enables developers to load Spring contexts efficiently, apply classes or XML files, and execute tests with minimal boilerplate, promoting practices. Key annotations like @ContextConfiguration allow precise control over context initialization, supporting both full and partial loading strategies to optimize test performance. For more targeted testing, Spring Boot extends these capabilities with annotations such as @SpringBootTest, which loads the complete application for comprehensive integration tests, including auto-configuration and embedded servers where needed. In contrast, @WebMvcTest offers context slicing, focusing solely on the web layer—particularly Spring MVC components like controllers— to enable faster, isolated tests without loading unrelated beans. These slicing annotations reduce test execution time by limiting the scope of context bootstrapping, making them ideal for focused verification of individual layers. MockMvc serves as a primary for testing Spring MVC controllers without starting an HTTP , simulating requests and verifying responses within the test environment. It integrates seamlessly with the Spring Test module, allowing assertions on status codes, content types, and JSON payloads through a fluent , thus ensuring controller logic behaves correctly under mock conditions. This approach avoids the overhead of full spins, enhancing test speed and reliability. in Spring includes load-time weaving (LTW) using the AspectJ agent, which dynamically applies (AOP) aspects to classes as they load into the JVM, without requiring compile-time modifications. Enabled via @EnableLoadTimeWeaving or JVM arguments like -javaagent, LTW is particularly useful in tests to inject concerns such as or without altering , bridging Spring's proxy-based AOP with AspectJ's full weaving capabilities. Spring's JMX integration, powered by the MBeanExporter, exposes managed beans (MBeans) for runtime and , allowing external tools to query bean attributes and invoke operations. Configured declaratively, it automatically registers Spring-managed objects as JMX-compliant MBeans, supporting features like notification emission and remote access over JSR-160 connectors, which aids in diagnosing application health during development and testing. Core instrumentation tools in the Spring Framework lay the groundwork for , with built-in support for through the Observation API in recent versions, enabling the publication of metrics and traces from framework components like data access and web layers. These precursors to Spring Boot Actuator's advanced endpoints provide foundational hooks for tools like Micrometer, allowing developers to instrument custom beans for performance analysis without .

Ecosystem and Extensions

Spring Boot for Rapid Development

Spring Boot is an extension of the Spring Framework designed to simplify the development of production-ready applications by emphasizing and reducing . It enables developers to create stand-alone Spring-based applications that can be run using java -jar, facilitating and deployment without requiring extensive XML configurations or manual setup of dependencies. A core feature of Spring Boot is its auto-configuration mechanism, which automatically configures Spring components based on the dependencies present in the application's . The @EnableAutoConfiguration triggers this process, where Spring Boot scans for jars and applies sensible defaults, such as setting up a data source if a database driver is detected or configuring web MVC if is included. This approach minimizes explicit configuration while allowing overrides through properties or custom beans when needed. Spring Boot further streamlines dependency management through its starters, which are predefined dependency descriptors that bundle commonly used libraries and their transitive dependencies. For instance, the spring-boot-starter-web starter includes dependencies for building web applications with Spring MVC, as the embedded server, and other essentials like Jackson for processing, all managed via a (BOM) in the spring-boot-starter-parent parent POM for consistent versioning. This eliminates version conflicts and simplifies the pom.xml or build.gradle files. To support easy deployment, Spring Boot integrates embedded web servers such as (the default), , or Undertow, allowing applications to run as self-contained executable JARs without needing a separate installation. Developers can switch servers by excluding the default and including an alternative starter, like spring-boot-starter-jetty, enabling quick testing and production deployment in containerized environments. Spring Boot provides production-ready features for monitoring and managing applications, exposing endpoints for health checks, metrics, and . The /actuator/health endpoint aggregates the status of application components, such as database connections or external services, reporting an overall UP, DOWN, or OUT_OF_SERVICE state. Metrics are collected via Micrometer, supporting integrations with systems like for JVM memory usage, HTTP requests, and custom gauges, accessible at /actuator/metrics. As of November 2025, the current stable version is 3.5.7, aligning with Spring Framework 6.2.x or later, with support for virtual threads (introduced in version 3.2) enabling better concurrency handling in I/O-bound applications without altering code. It also includes updates for and dependency upgrades, such as 11.7 for database migrations. 4.0, released in late 2025 alongside Spring Framework 7.0 (GA November 13, 2025), features robust versioning support through URI path or header-based strategies, deeper 11 integration, native image optimizations for , built-in resilience patterns, modularization of auto-configurations, and support for Kotlin 2.2.

Relationship with Jakarta EE

The Spring Framework emerged in the early 2000s as a lightweight, POJO-based alternative to the Enterprise JavaBeans (EJB) 2.x specification within Java EE (now ), which was criticized for its invasive nature requiring developers to implement specific interfaces, extend base classes, and use extensive deployment descriptors that tightly coupled to the EJB container. Introduced by Rod Johnson in his 2002 book Expert One-on-One J2EE Design and Development, Spring's first milestone release in 2004 emphasized (IoC) and (AOP) to simplify enterprise development without the overhead of full EJB containers. This approach allowed applications to run in lightweight servlet containers like , promoting modularity and reducing compared to EJB's heavyweight model. In modern versions, Spring Framework 6.0 and later align closely with standards, with 6.x adopting 9 as the baseline API level (compatible up to 10) and 7.0 (GA November 2025) adopting 11, transitioning to the jakarta.* namespace for packages like Servlet, JPA, and Bean Validation. This alignment enables seamless integration with -compliant servers such as 10.1 and 11, while Spring's annotations like @Transactional mirror declarative mechanisms in 's Contexts and (CDI) for managing transactions and lifecycles. Key overlaps include dependency injection, where Spring's IoC container provides functionality similar to CDI's @Inject via @Autowired or constructor injection, offering portable bean management across environments. For transactions, Spring's abstraction layer supports JTA (Java Transaction API) alongside local options like JDBC, allowing declarative management without EJB-specific ties, as seen in @Transactional applying to any POJO rather than container-managed beans. Spring also integrates natively with JPA () through modules like Spring Data JPA, enabling ORM providers such as Hibernate to handle persistence in a standards-compliant manner without full stack requirements. Spring's design offers advantages in portability and testing ease, as its POJO-centric model avoids the full-stack compliance mandates of , which require certified application servers for features like distributed transactions and —allowing Spring applications to deploy flexibly on embedded servers or cloud-native platforms while still leveraging APIs when beneficial. This contrasts with 's emphasis on vendor-neutral specifications for enterprise-scale deployments, where provides a more modular, non-intrusive path for developers seeking to avoid container lock-in. Migration from EJB to Spring typically involves refactoring session beans into Spring-managed POJOs (using scopes like or ), converting entity beans to standard JPA entities backed by Hibernate or another provider, and transforming message-driven beans into Spring's asynchronous messaging support via @MessageMapping or JMS listeners. Spring's built-in JTA support facilitates handling distributed transactions during such transitions, often bridging to existing Jakarta EE infrastructure without full rewrites, and tools like Spring Boot Migrator can automate much of the process for legacy EJB applications.

Security Considerations

Historical Vulnerabilities

One of the most significant historical vulnerabilities in the Spring Framework is Spring4Shell, identified as CVE-2022-22965 and disclosed in March 2022. This remote code execution (RCE) flaw affects Spring MVC and Spring WebFlux applications running on or later, specifically when deployed as a traditional WAR file on . The vulnerability arises from the way Spring handles data binding for request parameters, allowing to manipulate class loader behavior through specially crafted HTTP requests. Affected include Spring Framework 5.3.0 through 5.3.17 and 5.2.0 through 5.2.19. Exploitation of Spring4Shell involves sending a malicious request with parameters that exploit Tomcat's loading mechanism, leading to arbitrary writes on the and potential RCE without . For instance, attackers could use oversized or specially named parameters to trigger the creation of temporary files in the web application's temporary directory, enabling if combined with other misconfigurations. This issue highlighted risks in the dynamic nature of Spring's web layer, particularly in how (IoC) and data binding interact with server-specific features like Tomcat's resource handling. Real-world was observed shortly after disclosure, including attempts to deploy such as Mirai botnets. Mitigation for Spring4Shell requires upgrading to Spring Framework 5.3.18 or 5.2.20 and later versions, where the data binding logic was hardened to prevent class loader manipulation. Additional protections include deploying applications as executable JARs (which are not vulnerable), using alternative servlet containers like , and implementing strict input validation on request parameters. The underscored the importance of securing dynamic bean creation in Spring's core principles against web-layer exploits. Another notable pre-2025 vulnerability is CVE-2016-1000027, a potential RCE issue stemming from unsafe deserialization in the Spring Framework, particularly when using features like HttpInvokerServiceExporter for remote invocations. This flaw allows attackers to execute arbitrary code if the application deserializes untrusted data and a suitable gadget chain is present in the , affecting Spring Framework versions 4.0.0 through 4.2.9. It was addressed in Spring Framework 4.3.0 and later versions, with recommendations to avoid deserializing untrusted inputs altogether. Like Spring4Shell, this exposed risks in Spring's remoting capabilities when handling external data, prompting broader adoption of secure deserialization practices.

Recent Security Issues

In 2025, the Spring Framework encountered several security vulnerabilities primarily affecting its web and reactive components, highlighting ongoing challenges in handling path traversals, expression evaluations, annotation processing, and communications. These issues were disclosed throughout the year and addressed through timely patches, underscoring the importance of regular updates in enterprise applications. One notable vulnerability, CVE-2025-41242, disclosed in August 2025, involves a path traversal flaw in Spring MVC applications deployed on non-compliant Servlet containers, such as certain servers that fail to properly normalize paths. This medium-severity issue (CVSS 6.5) allows attackers to access files outside the intended directory via crafted HTTP requests, potentially exposing sensitive configuration or application data. Affected versions include 6.2.0 to 6.2.9, 6.1.0 to 6.1.21, and 5.3.0 to 5.3.43. In September 2025, CVE-2025-41243 was reported as a critical vulnerability (CVSS 9.8) in Spring Cloud Gateway Server WebFlux, enabling unauthorized modification of Spring Environment properties through malicious Spring Expression Language (SpEL) injections. This flaw arises from improper evaluation contexts in reactive routes, potentially allowing attackers to alter application behavior, such as bypassing or injecting arbitrary code, leading to full unauthorized access in misconfigured gateways. It impacts Spring Cloud Gateway versions 4.1.0 to 4.1.5 and 4.0.0 to 4.0.10. Also in September 2025, CVE-2025-41249 exposed a risk due to flawed detection in the Framework's method mechanisms, particularly when using @EnableMethodSecurity with type hierarchies involving parameterized supertypes. This medium-severity issue (CVSS 7.5) can result in unintended access to secured methods, as annotations may not propagate correctly, allowing privilege abuse in applications relying on . Vulnerable versions span 6.2.0 to 6.2.10, 6.1.0 to 6.1.22, and 5.3.0 to 5.3.44. In May 2025, CVE-2025-41232 was disclosed as a medium-severity (CVSS 6.5) in Spring Security's method security, allowing bypass for annotations on private methods when @EnableMethodSecurity is used. This issue affects applications where private methods with security annotations are inadvertently exposed, potentially leading to unauthorized access. Affected versions include 6.2.0 to 6.2.5, 6.1.0 to 6.1.18, and 5.3.0 to 5.3.41. In October 2025, CVE-2025-41253 was identified as a moderate-severity flaw (CVSS 6.8) in Cloud Gateway Server WebFlux, where SpEL expressions could expose environment variables or system properties if the actuator endpoint is enabled and misconfigured. This allows potential information disclosure or further exploitation in gateway setups. It affects Cloud Gateway versions 4.1.6 to 4.1.7 and 4.0.11 to 4.0.12. The year closed with CVE-2025-41254 in October 2025, a CSRF in STOMP over implementations that permits attackers to bypass session checks and send unauthorized messages without proper origin validation. Rated medium severity (CVSS 6.5), this affects real-time applications using 's WebSocket support, potentially enabling message spoofing or denial-of-service in collaborative environments. It targets Framework versions 6.2.0 to 6.2.11, 6.1.0 to 6.1.23, and 5.3.0 to 5.3.45. To mitigate these vulnerabilities, Spring released patches in versions 6.2.12 and later for open-source support, alongside enterprise updates for 5.3.x and 6.1.x branches, which developers should apply promptly. Best practices include enforcing strict Servlet container compliance, validating SpEL expressions in reactive components, auditing annotation hierarchies in secured applications, implementing CSRF tokens for endpoints, and integrating regular dependency scanning tools like Dependency-Check. These measures, combined with secure configuration defaults in modern web modules, help prevent exploitation in production deployments.

References

  1. [1]
    Spring Framework
    The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment ...Spring-framework-ref.. · Documentation · Web on Servlet Stack · Javadoc-api
  2. [2]
    Spring Framework: The Origins of a Project and a Name
    Nov 9, 2006 · I am regularly asked about the origin of the name “Spring.” The name goes back to late 2002. In November 2002, I published Expert One-on-One ...
  3. [3]
    Spring Framework Overview
    Spring makes it easy to create Java enterprise applications. It provides everything you need to embrace the Java language in an enterprise environment.What We Mean by "Spring" · History of Spring and the... · Design Philosophy
  4. [4]
    Introduction to the Spring IoC Container and Beans
    Introduction to the Spring IoC Container and Beans. This chapter covers the Spring Framework implementation of the Inversion of Control (IoC) principle.Container Overview · The BeanFactory API · Interface BeanFactory<|control11|><|separator|>
  5. [5]
    Spring founders Rod Johnson and Juergen Hoeller on the 20th ...
    Apr 18, 2024 · Spring founders Rod Johnson and Juergen Hoeller on the 20th Anniversary of Spring Framework 1.0.Missing: creator | Show results with:creator
  6. [6]
    Spring Framework 1.0 Final Released
    Mar 24, 2004 · We are pleased to announce that Spring Framework 1.0 final has just been released. 1. SCOPE. Spring 1.0 is a complete Java/J2EE application ...
  7. [7]
    Spring 2.0 Final Released
    Oct 3, 2006 · It is our pleasure to announce that the long-awaited final release of the Spring Framework version 2.0 is now available. Spring 2.0 Released.
  8. [8]
    Announcing Spring Framework 4.0 GA Release
    Dec 12, 2013 · Spring Framework 4.0 offers 1st class Java 8 support now, based on the pre-release Java 8 builds, and will be immediately production-capable ...
  9. [9]
    Spring Framework 5.0 goes GA
    Sep 28, 2017 · This brand-new generation of the framework is ready for 2018 and beyond: with support for JDK 9 and the Java EE 8 API level (e.g. Servlet 4.0), ...Missing: features | Show results with:features
  10. [10]
    The latest version of Spring framework till date - CodeJava.net
    Oct 31, 2025 · As of November 2025, the latest and stable release of Spring framework is 6.2.12 released on Oct 16, 2025 (Release Notes). This version requires ...2. Spring Framework Version... · Spring Framework 4. X (2013) · Spring Framework 5. X (2017)<|control11|><|separator|>
  11. [11]
    Spring Framework 7.0 Release Notes - GitHub
    This is a preview of the Spring Framework 7.0 release, scheduled for November 2025. Upgrading From Spring Framework 6.2. Baseline Upgrades. Spring Framework 7.0 ...Missing: initial | Show results with:initial
  12. [12]
    VMWare Acquires SpringSource - TechCrunch
    Aug 10, 2009 · The deal closed at a $420 million valuation, with $362 million in cash and equity plus an assumption of approximately $58 million in unvested ...
  13. [13]
    Broadcom announces successful acquisition of VMware | Hock Tan
    Nov 21, 2023 · I am thrilled to announce Broadcom's successful acquisition of VMware, and the start of a new and exciting era for all of us at the company.
  14. [14]
    Dependency Injection :: Spring Framework
    Dependency injection (DI) is a process whereby objects define their dependencies (that is, the other objects with which they work) only through constructor ...
  15. [15]
    Java-based Container Configuration :: Spring Framework
    No readable text found in the HTML.<|separator|>
  16. [16]
    404 Not Found
    Insufficient relevant content.
  17. [17]
    Aspect Oriented Programming with Spring
    Spring provides simple and powerful ways of writing custom aspects by using either a schema-based approach or the @AspectJ annotation style.
  18. [18]
    AOP Concepts :: Spring Framework
    Spring AOP lets you introduce new interfaces (and a corresponding implementation) to any advised object. For example, you could use an introduction to make a ...
  19. [19]
    Spring AOP Capabilities and Goals
    Spring AOP is implemented in pure Java. There is no need for a special compilation process. Spring AOP does not need to control the class loader hierarchy ...<|control11|><|separator|>
  20. [20]
    AOP Proxies :: Spring Framework
    Spring AOP defaults to using standard JDK dynamic proxies for AOP proxies. This enables any interface (or set of interfaces) to be proxied.
  21. [21]
    @AspectJ support :: Spring Framework
    - **Integration with AspectJ**:
  22. [22]
    Using AspectJ with Spring Applications
    Load-time weaving (LTW) refers to the process of weaving AspectJ aspects into an application's class files as they are being loaded into the Java virtual ...
  23. [23]
    The IoC Container :: Spring Framework
    This chapter covers Spring's Inversion of Control (IoC) container. Section Summary Core Technologies Introduction to the Spring IoC Container and Beans
  24. [24]
    Bean Overview :: Spring Framework
    These beans are created with the configuration metadata that you supply to the container (for example, in the form of XML <bean/> definitions). Within the ...
  25. [25]
    Annotation-based Container Configuration :: Spring Framework
    Spring provides comprehensive support for annotation-based configuration, operating on metadata in the component class itself by using annotations.
  26. [26]
    Difference Between BeanFactory and ApplicationContext | Baeldung
    Jan 8, 2024 · The BeanFactory is the most basic version of IOC containers, and the ApplicationContext extends the features of BeanFactory. In this quick ...
  27. [27]
    Environment Abstraction :: Spring Framework
    The Environment interface is an abstraction integrated in the container that models two key aspects of the application environment: profiles and properties.
  28. [28]
    Classpath Scanning and Managed Components :: Spring Framework
    Most examples in this chapter use XML to specify the configuration metadata that produces each BeanDefinition within the Spring container.
  29. [29]
    Profiles :: Spring Boot
    Spring Profiles provide a way to segregate parts of your application configuration and make it be available only in certain environments.
  30. [30]
    FactoryBean (Spring Framework 6.2.12 API)
    FactoryBean is a programmatic contract. Implementations are not supposed to rely on annotation-driven injection or other reflective facilities. Invocations of ...
  31. [31]
    Method Injection :: Spring Framework
    The Spring Framework implements this method injection by using bytecode generation from the CGLIB library to dynamically generate a subclass that overrides the ...Missing: FactoryBean | Show results with:FactoryBean
  32. [32]
    Spring Expression Language (SpEL) :: Spring Framework
    The Spring Expression Language ("SpEL" for short) is a powerful expression language that supports querying and manipulating an object graph at runtime.
  33. [33]
    6. Spring Expression Language (SpEL)
    The Spring Expression Language (SpEL for short) is a powerful expression language that supports querying and manipulating an object graph at runtime.
  34. [34]
    Variables :: Spring Framework
    Feb 6, 2012 · You can reference variables in an expression by using the #variableName syntax. Variables are set by using the setVariable() method in EvaluationContext ...Missing: coercion | Show results with:coercion
  35. [35]
    Collection Projection :: Spring Framework
    The Spring Expression Language also supports safe navigation for collection projection. See Safe Collection Selection and Projection for details. Collection ...Missing: coercion | Show results with:coercion
  36. [36]
    Collection Selection :: Spring Framework
    Selection is a powerful expression language feature that lets you transform a source collection into another collection by selecting from its entries.Missing: coercion | Show results with:coercion
  37. [37]
    Safe Navigation Operator :: Spring Framework
    The safe navigation operator ( ? ) is used to avoid a NullPointerException and comes from the Groovy language.Missing: coercion | Show results with:coercion
  38. [38]
    Data Access with JDBC :: Spring Framework
    The Spring Framework takes care of all the low-level details that can make JDBC such a tedious API. DAO Support Choosing an Approach for JDBC Database Access
  39. [39]
    JdbcTemplate (Spring Framework 6.2.12 API)
    This is the central delegate in the JDBC core package. It can be used directly for many data access purposes, supporting any kind of JDBC operation.
  40. [40]
    DAO Support :: Spring Framework
    The best way to guarantee that your Data Access Objects (DAOs) or repositories provide exception translation is to use the @Repository annotation. This ...
  41. [41]
    Repository (Spring Framework 6.2.12 API)
    Indicates that an annotated class is a "Repository", originally defined by Domain-Driven Design (Evans, 2003) as a mechanism for encapsulating storage, ...Missing: support | Show results with:support
  42. [42]
    Controlling Database Connections :: Spring Framework
    Spring obtains a connection to the database through a DataSource. A DataSource is part of the JDBC specification and is a generalized connection factory.
  43. [43]
    SQL Databases :: Spring Boot
    If you use the spring-boot-starter-jdbc or spring-boot-starter-data-jpa starters, you automatically get a dependency to HikariCP. You can bypass that algorithm ...
  44. [44]
    Using the JDBC Core Classes to Control Basic JDBC ... - Spring
    The NamedParameterJdbcTemplate class wraps a JdbcTemplate and delegates to the wrapped JdbcTemplate to do much of its work. This section describes only those ...
  45. [45]
    Simplifying JDBC Operations with the SimpleJdbc Classes - Spring
    You do not need to subclass the SimpleJdbcInsert class. Instead, you can create a new instance and set the table name by using the withTableName method.Missing: NamedParameterJdbcTemplate | Show results with:NamedParameterJdbcTemplate
  46. [46]
    Object Relational Mapping (ORM) Data Access :: Spring Framework
    This section covers data access when you use Object Relational Mapping (ORM). Section Summary. Introduction to ORM with Spring · General ORM Integration ...
  47. [47]
    Spring Data JPA
    Spring Data JPA provides repository support for the Jakarta Persistence API (JPA). It eases development of applications with a consistent programming model.JPA · Upgrading Spring Data · JPA Query Methods · Spring Projects
  48. [48]
    Transactionality :: Spring Data JPA
    To run those methods transactionally, use @Transactional at the repository interface you define, as shown in the following example.
  49. [49]
    JMS (Java Message Service) :: Spring Framework
    Spring provides a JMS integration framework that simplifies the use of the JMS API in much the same way as Spring's integration does for the JDBC API.
  50. [50]
    JmsTemplate (Spring Framework 6.2.12 API)
    Helper class that simplifies synchronous JMS access code. If you want to use dynamic destination creation, you must specify the type of JMS destination to ...
  51. [51]
    Getting Started | Messaging with JMS - Spring
    Spring's JmsTemplate can receive messages directly through its receive method, but that works only synchronously, meaning that it blocks. That is why we ...
  52. [52]
    Receiving a Message :: Spring Framework
    Spring allows synchronous message receipt, asynchronous using Message-Driven POJOs, and MessageListenerAdapter. Message processing can be within transactions.
  53. [53]
    Getting Started with Spring JMS | Baeldung
    May 11, 2024 · Spring provides a JMS Integration framework that simplifies the use of the JMS API. In this tutorial, we'll introduce the basic concepts of ...<|control11|><|separator|>
  54. [54]
    JMS :: Spring Boot
    Spring Boot auto-configures JMS using ConnectionFactory, supports ActiveMQ and Artemis, and uses JmsTemplate for sending and @JmsListener for receiving ...ActiveMQ "Classic" Support · ActiveMQ Artemis Support · Sending a Message
  55. [55]
    Spring for Apache Kafka
    Spring for Apache Kafka applies Spring concepts to Kafka messaging, providing a template for sending messages and support for message-driven POJOs.
  56. [56]
    Spring Support - ActiveMQ - The Apache Software Foundation
    To configure an ActiveMQ Classic JMS client in Spring it is just a simple matter of configuring an instance of ActiveMQConnectionFactory within a standard ...<|separator|>
  57. [57]
    Transformer :: Spring Integration
    Message transformers play a very important role in enabling the loose-coupling of message producers and message consumers.Transformers and Spring... · Object-to-String Transformer · JSON Transformers
  58. [58]
    Transaction Management :: Spring Framework
    Synchronizing resources with transactions describes how the application code ensures that resources are created, reused, and cleaned up properly.Advantages of the Spring... · Declarative Transaction · Programmatic Transaction...
  59. [59]
    Using @Transactional :: Spring Framework
    The @Transactional annotation is typically used on methods with public visibility. As of 6.0, protected or package-visible methods can also be made ...
  60. [60]
    Transaction Propagation :: Spring Framework
    Transaction propagation in Spring involves PROPAGATION_REQUIRED, which participates in an outer transaction, PROPAGATION_REQUIRES_NEW, which creates an ...Missing: rules | Show results with:rules
  61. [61]
    Enum Class Isolation - Spring
    The Isolation enum represents transaction isolation levels for @Transactional, including DEFAULT, READ_COMMITTED, READ_UNCOMMITTED, REPEATABLE_READ, and ...
  62. [62]
    Transactional (Spring Framework 6.2.12 API)
    Rollback rules determine if a transaction should be rolled back when a given exception is thrown, and the rules are based on types or patterns. Custom rules ...
  63. [63]
    JpaTransactionManager (Spring Framework 6.2.12 API)
    `JpaTransactionManager` is a PlatformTransactionManager for a single JPA EntityManagerFactory, binding it to the thread, and supports direct DataSource access.Missing: documentation | Show results with:documentation
  64. [64]
    Programmatic Transaction Management :: Spring Framework
    The Spring Framework provides two means of programmatic transaction management, by using: The TransactionTemplate or TransactionalOperator . A ...
  65. [65]
    Distributed Transactions With JTA :: Spring Boot
    Spring Boot supports distributed JTA transactions across multiple XA resources by using a transaction manager retrieved from JNDI.
  66. [66]
    Spring Batch Introduction
    Spring Batch is a lightweight, comprehensive batch framework designed to enable the development of robust batch applications that are vital for the daily ...
  67. [67]
    Spring Batch Architecture
    This layered architecture highlights three major high-level components: Application, Core, and Infrastructure. The application contains all batch jobs and ...
  68. [68]
    Spring Batch - ItemReaders and ItemWriters
    Spring Batch provides three key interfaces to help perform bulk reading and writing: ItemReader, ItemProcessor, and ItemWriter.
  69. [69]
    Chunk-oriented Processing :: Spring Batch
    Chunk oriented processing refers to reading the data one at a time and creating 'chunks' that are written out within a transaction boundary.
  70. [70]
    Configuring Skip Logic :: Spring Batch
    The skipLimit can be explicitly set using the skipLimit() method. If not specified, the default skip limit is set to 10.
  71. [71]
    Configuring Retry Logic :: Spring Batch
    The Step allows a limit for the number of times an individual item can be retried and a list of exceptions that are “retryable”.
  72. [72]
    Configuring a JobRepository :: Spring Batch
    The JobRepository is used for basic CRUD operations of the various persisted domain objects within Spring Batch, such as JobExecution and StepExecution.
  73. [73]
    Meta-Data Schema :: Spring Batch
    Spring Batch provides many schemas as examples. All of them have varying data types, due to variations in how individual database vendors handle data types.
  74. [74]
    Scaling and Parallel Processing :: Spring Batch
    Multi-threaded Step (single-process). Parallel Steps (single-process). Remote Chunking of Step (multi-process). Partitioning a Step (single or multi-process).Common Batch Patterns · Repeat · Item processing
  75. [75]
    Task Execution and Scheduling :: Spring Framework
    The Spring Framework provides abstractions for the asynchronous execution and scheduling of tasks with the TaskExecutor and TaskScheduler interfaces, ...
  76. [76]
    Monitoring and metrics :: Spring Batch
    Spring Batch provides support for batch monitoring and metrics based on Micrometer. This section describes which metrics are provided out-of-the-box and how to ...
  77. [77]
    Spring Web MVC :: Spring Framework
    Spring Web MVC is the original web framework built on the Servlet API and has been included in the Spring Framework from the very beginning.MVC Config · DispatcherServlet · Annotated Controllers · Filters
  78. [78]
    Annotated Controllers :: Spring Framework
    Spring MVC provides an annotation-based programming model where @Controller and @RestController components use annotations to express request mappings.
  79. [79]
    Enable MVC Configuration :: Spring Framework
    You can use the @EnableWebMvc annotation to enable MVC configuration with programmatic configuration, or <mvc:annotation-driven> with XML configuration.
  80. [80]
    Validation :: Spring Framework
    Feb 6, 2012 · The LocalValidatorFactoryBean is registered as a global Validator for use with @Valid and @Validated on controller method arguments.<|control11|><|separator|>
  81. [81]
    Message Converters :: Spring Framework
    In a Spring Boot application, the WebMvcAutoConfiguration adds any HttpMessageConverter beans it detects, in addition to default converters.Missing: @restcontroller<|separator|>
  82. [82]
    Spring WebFlux :: Spring Framework
    Spring WebFlux is a reactive-stack web framework, added later than Spring MVC, that is non-blocking and supports Reactive Streams. It co-exists with Spring MVC.WebFlux Config · Overview · CORS · Web Security
  83. [83]
    Overview :: Spring Framework
    Feb 6, 2012 · Spring WebFlux is a non-blocking web stack for reactive programming, using a small number of threads, and offers annotated controllers and ...
  84. [84]
    Web on Reactive Stack - Spring
    Sep 28, 2017 · Reactor is the reactive library of choice for Spring WebFlux. It provides the Mono and Flux API types to work on data sequences of 0..1 and 0..N ...
  85. [85]
    About the Documentation :: Reactor Core Reference Guide
    This section provides a brief overview of Reactor reference documentation. You do not need to read this guide in a linear fashion.
  86. [86]
    [PDF] Web on Reactive Stack - Spring
    Part of the answer is the need for a non-blocking web stack to handle concurrency with a small number of threads and scale with less hardware resources.
  87. [87]
    Reactive Web Applications :: Spring Boot
    Spring Boot simplifies reactive web apps using Spring WebFlux, which is asynchronous and non-blocking, and provides auto-configuration.The “Spring WebFlux... · Spring WebFlux Auto... · Spring WebFlux Conversion...
  88. [88]
    [PDF] Web on Reactive Stack - Spring
    The request body is represented with a Reactor Flux or Mono. The response body is represented with any Reactive Streams Publisher, including Flux and Mono.
  89. [89]
    Functional Endpoints :: Spring Framework
    The request body is represented with a Reactor Flux or Mono . The response body is represented with any Reactive Streams Publisher , including Flux and Mono .<|separator|>
  90. [90]
    Overview :: Spring Framework
    Feb 6, 2012 · When you use Spring's STOMP support, the Spring WebSocket application acts as the STOMP broker to clients. Messages are routed to @Controller ...<|separator|>
  91. [91]
    Annotated Controllers :: Spring Framework
    At the type level, @MessageMapping is used to express shared mappings across all methods in a controller. By default, the mapping values are Ant-style path ...
  92. [92]
    Enable STOMP :: Spring Framework
    STOMP over WebSocket support is available in the spring-messaging and spring-websocket modules. Once you have those dependencies, you can expose a STOMP ...
  93. [93]
    Flow of Messages :: Spring Framework
    When messages are received from a WebSocket connection, they are decoded to STOMP frames, turned into a Spring Message representation, and sent to the ...
  94. [94]
    WebFlux Support :: Spring Integration
    The WebFlux Spring Integration module ( spring-integration-webflux ) allows for the execution of HTTP requests and the processing of inbound HTTP requests in a ...Webflux Namespace Support · Webflux Inbound Components · Webflux Outbound Components
  95. [95]
    RSocket :: Spring Framework
    Feb 6, 2012 · Spring Boot 2.2 supports standing up an RSocket server over TCP or WebSocket, including the option to expose RSocket over WebSocket in a WebFlux ...
  96. [96]
    RSocket :: Spring Boot
    Spring Boot allows exposing RSocket over WebSocket from a WebFlux server, or standing up an independent RSocket server. This depends on the type of application ...
  97. [97]
    RSocket Support :: Spring Integration
    The RSocket Spring Integration module ( spring-integration-rsocket ) allows for executions of RSocket application protocol.
  98. [98]
    Deprecate remoting technologies support · Issue #25379 - GitHub
    Jul 9, 2020 · Let's rather deprecate the entire RMI and HTTP Invoker support in 5.3 and remove those bits in 6.0 altogether. Such a style of remoting is old school and not ...
  99. [99]
  100. [100]
  101. [101]
  102. [102]
    The state of HTTP clients in Spring
    Sep 30, 2025 · The community raised concerns on several occasions regarding how HTTP clients are packaged in Spring artifacts. RestClient and RestTemplate live ...
  103. [103]
    spring-projects/spring-grpc - GitHub
    Welcome to the Spring gRPC project! The Spring gRPC project provides a Spring-friendly API and abstractions for developing gRPC applications.Getting Started · Details · Dependency Management
  104. [104]
    Spring gRPC 0.9.0 Released — What's New and Why It Matters
    Jul 17, 2025 · On behalf of the Spring community, we're excited to share that Spring gRPC 0.9.0 is now officially available on Maven Central.
  105. [105]
    Spring - Apache CXF
    Apache CXF, Services Framework - Spring. ... Advanced Integration · Deployment · Use of Schemas and Namespaces · Securing CXF Services. Search. API 4.0.x (Javadoc) ...
  106. [106]
    Apache CXF -- SpringBoot
    Use "cxf.jaxrs.component-scan-packages" property to restrict which of the auto-discovered Spring components are accepted as JAX-RS resource or provider classes.
  107. [107]
    Testing :: Spring Framework
    Feb 6, 2012 · This chapter covers Spring's support for integration testing and best practices for unit testing. The Spring team advocates test-driven development (TDD).
  108. [108]
    Testing :: Spring Boot
    Spring Boot provides a number of utilities and annotations to help when testing your application. Test support is provided by two modules.
  109. [109]
    JMX :: Spring Framework
    ### Summary of JMX Integration in Spring Framework
  110. [110]
    Observability Support :: Spring Framework
    Spring Framework instruments various parts of its own codebase to publish observations if an ObservationRegistry is configured.Missing: profiling | Show results with:profiling
  111. [111]
    Auto-configuration :: Spring Boot
    Spring Boot auto-configuration attempts to automatically configure your Spring application based on the jar dependencies that you have added.
  112. [112]
    Build Systems :: Spring Boot
    All official starters follow a similar naming pattern; spring-boot-starter-* , where * is a particular type of application. This naming structure is intended ...Structuring Your Code · Maven Plugin · Gradle Plugin
  113. [113]
    Spring Boot 3.3 Release Notes - GitHub
    Nov 13, 2024 · Spring Boot 3.3 includes support for the Prometheus Client 1.x. This release of the client contains some breaking changes, eg changes to the exported metric ...
  114. [114]
    The Road to GA - Introduction - Spring
    Sep 2, 2025 · This will be only the fourth major generation for Spring Boot and the seventh major generation for Spring Framework in its over 20 year history.
  115. [115]
    Spring Bean vs. EJB - A Feature Comparison - Baeldung
    Jan 8, 2024 · In this tutorial, we'll take a look at their history and differences. Of course, we'll see some code examples of EJB and their equivalents in the Spring world.
  116. [116]
    Spring Framework 6.0 goes GA
    Nov 16, 2022 · Don't be stuck on Java EE 8, make the leap to the jakarta namespace, ideally straight to the Jakarta EE 10 level! The upcoming Spring Boot 3.0.
  117. [117]
    Spring Framework Versions - GitHub
    7.0.x will be the next major generation (November 2025). · 6.2.x is the current production line (November 2024). · 6.1.x was the previous production line ( ...
  118. [118]
    Declarative Transaction Management :: Spring Framework
    ### Summary of Spring @Transactional and its Relation to JTA
  119. [119]
    Transactional Annotations: Spring vs. JTA | Baeldung
    May 12, 2020 · JTA Transactional annotation applies to CDI-managed beans and classes defined as managed beans by the Java EE specification, whereas Spring's ...
  120. [120]
    Getting Started | Accessing Data with JPA - Spring
    This guide walks you through the process of building an application that uses Spring Data JPA to store and retrieve data in a relational database.
  121. [121]
    Why Spring Matters to Jakarta EE - and Vice Versa - Eclipse News
    Mar 25, 2024 · Even if the baseline for Spring officially is Jakarta EE 9, many APIs from Jakarta EE 10 are already being pulled in and possible to use.
  122. [122]
    [PDF] A Guide to Migrating Enterprise Applications to Spring
    Oct 14, 2008 · Session EJBs can be migrated to POJOs managed by Spring. Entity Beans can be converted to JPA Entity classes. Message-driven beans can be ...
  123. [123]
    Migrate to Spring Boot 3.0 | OpenRewrite Docs
    This recipe will also chain additional framework migrations (Spring Framework, Spring Data, etc) that are required as part of the migration to Spring Boot 2.7.<|separator|>
  124. [124]
    CVE-2022-22965: Spring Framework RCE via Data Binding on JDK ...
    Mar 31, 2022 · Description. A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding.
  125. [125]
  126. [126]
    CVE-2022-22965 (SpringShell): RCE Vulnerability Analysis and ...
    Mar 31, 2022 · The CVE-2022-22965 vulnerability allows an attacker unauthenticated remote code execution (RCE), which Unit 42 has observed being exploited in the wild.
  127. [127]
    CVE-2022-22965 Analyzing the Exploitation of Spring4Shell ...
    Apr 8, 2022 · We discovered active exploitation of a vulnerability in the Spring Framework designated as CVE-2022-22965 that allows malicious actors to download the Mirai ...
  128. [128]
  129. [129]
    CVE-2016-1000027 - Red Hat Customer Portal
    Jul 7, 2016 · Pivotal Spring Framework through 5.3.16 suffers from a potential remote code execution (RCE) issue if used for Java deserialization of untrusted data.Missing: advisory | Show results with:advisory
  130. [130]
    Security Advisories - Spring
    Spring has a critical vulnerability (CVE-2025-41243) in Spring Cloud Gateway Server Webflux, and a medium vulnerability (CVE-2025-41242) in Spring Framework ...Missing: historical pre-
  131. [131]
    CVE-2025-41242 Detail - NVD
    Aug 18, 2025 · Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant Servlet container.
  132. [132]
    CVE-2025-41242: Path traversal vulnerability on non-compliant ...
    Aug 14, 2025 · CVE-2025-41242 is a path traversal vulnerability in Spring Framework MVC apps on non-compliant Servlet containers, affecting versions 6.2.0-6.2 ...
  133. [133]
    CVE-2025-41243 Detail - NVD
    Sep 16, 2025 · Spring Cloud Gateway Server Webflux may be vulnerable to Spring Environment property modification. An application should be considered ...Missing: Framework | Show results with:Framework
  134. [134]
    CVE-2025-41243: Spring Expression Language property ...
    Sep 8, 2025 · Description. The following versions of Spring Cloud Gateway Server Webflux may be vulnerable to Spring Environment property modification.
  135. [135]
    CVE-2025-41249 Detail - NVD
    Sep 16, 2025 · Description. The Spring Framework annotation detection mechanism may not correctly resolve annotations on methods within type hierarchies ...
  136. [136]
    CVE-2025-41249: Spring Framework Annotation Detection ...
    Sep 15, 2025 · Description. The Spring Framework annotation detection mechanism may not correctly resolve annotations on methods within type hierarchies ...
  137. [137]
    CVE-2025-41254 Detail - NVD
    Oct 16, 2025 · Description. STOMP over WebSocket applications may be vulnerable to a security bypass that allows an attacker to send unauthorized messages.
  138. [138]
    CVE-2025-41254: Spring Framework STOMP CSRF Vulnerability
    Oct 16, 2025 · Description. STOMP over WebSocket applications may be vulnerable to a security bypass that allows an attacker to send unauthorized messages.
  139. [139]
    Spring Framework 6.2.12 fixes CVE-2025-41254
    Oct 16, 2025 · This release addresses CVE-2025-41254 for "Spring Framework STOMP CSRF Vulnerability". Open source support for Spring Framework 5.3.x and 6.1.x ...