---
schema_version: "1"
id: 9ae763d2e9adfa9cc81dc68bd58e95fd7b8d1a6e6dff7bb72a231ad24f2c1d4d
title: Spring Module 2.2 Reference
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/spring-module/latest/spring-module-reference.md
canonical_url: https://docs.mulesoft.com/spring-module/latest/spring-module-reference
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 678f4a353456fe2d50932f1d7270884f1499cd055f42ab249fdc64668a078852
description: MuleSoft Documentation Site
release: "2.2"
latest: true
---
---
product: Spring Module
version: 2.2
is-latest-version: true
---

# Spring Module 2.2 Reference

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Spring Module enables Mule apps to use the Spring framework.

## Configurations

---

### Config

Spring configuration that enables you to define a set of spring XML files and create an application
context with objects to use in the Mule artifact. This configuration uses Spring Framework 6 and
Spring Security 6 and is deprecated. To use Spring 7, use [7 Config](#v7-config).

#### Parameters

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p><strong>Name</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Name for this configuration. Connectors reference the configuration with this name.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Files</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>The Spring beans file.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Name</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>The identifier of this element used to reference it in other components.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr></tbody></table>

### 7 Config

`<spring:v7-config>`

Spring configuration that enables you to define a set of spring XML files and create an application
context with objects to use in the Mule artifact. This configuration uses Spring Framework 7 and
Spring Security 7. You can’t use it in the same app as [Config](#config).

#### Parameters

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p><strong>Name</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Name for this configuration. Connectors reference the configuration with this name.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Files</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>The Spring beans file.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Name</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>The identifier of this element used to reference it in other components.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr></tbody></table>

## Operations

### Authorization Filter

`<spring:authorization-filter>`

Authorizes users against a required set of authorities.

#### Parameters

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p><strong>Required Authorities</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>The authorities that grants the user further access to the flow, for example, <code>ROLE_ADMIN</code>,<code>ROLE_USER</code>.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Error Mappings</strong></p></td><td><div><div><p>Array of <a href="#ErrorMapping">Error Mapping</a></p></div></div></td><td><div><div><p>Set of error mappings.</p></div></div></td><td><div></div></td><td><div></div></td></tr></tbody></table>

#### Throws

- MULE:NOT\_PERMITTED

- MULE:SERVER\_SECURITY

## Types

### Error Mapping

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Field</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p>Source</p></td><td><div><div><p>Enumeration, one of:</p></div><div><ul><li><p>ANY</p></li><li><p>REDELIVERY_EXHAUSTED</p></li><li><p>TRANSFORMATION</p></li><li><p>EXPRESSION</p></li><li><p>SECURITY</p></li><li><p>CLIENT_SECURITY</p></li><li><p>SERVER_SECURITY</p></li><li><p>ROUTING</p></li><li><p>CONNECTIVITY</p></li><li><p>RETRY_EXHAUSTED</p></li><li><p>TIMEOUT</p></li></ul></div></div></td><td><p>Source of the error.</p></td><td></td><td></td></tr><tr><td><p>Target</p></td><td><div><div><p>String</p></div></div></td><td><p>Target of the error.</p></td><td></td><td><p>x</p></td></tr></tbody></table>

### Delegate Security Provider

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Field</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p><strong>Name</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Provider name to reference.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Delegate Ref</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Spring security manager.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Authentication Provider Ref</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Authentication provider.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr></tbody></table>

## See Also

- [Salesforce Help](https://help.salesforce.com)
