> For the complete documentation index, see [llms.txt](https://bernardo.gitbook.io/development-docs-java/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bernardo.gitbook.io/development-docs-java/spring/spel.md).

# SpEL

Spring Expression Language

## Operations

### Acquiring a Bean

Using the name of a value or a constant:

```
#{beanName}
```

```
#{property.name}
```

Properties can be used:

```
#{${property.name}}
```

Or a reference to a registered bean:

```
#{@beanName}
```

It is possible to get a factory:

```
#{&beanName}
```

### Checking Properties

```
#{'${property.name}'.contains('Some text')}
```

### Default Values

```
${properties.booleanValue:false}
```

It may be the empty string:

```
${properties.textValue:}
```

### Type Safe Operations

```
#{bean?.field}
```

## More Information

* [Spring Expression Language](https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#expressions)
