Home > Guides > Core Developers Guide > Annotations > Key Annotation |

Apache Struts 2 Documentation
Key Annotation
Edit Page Browse Space Add Page Add News

Sets the Key for type conversion.

## Usage

The Key annotation must be applied at field or method level.

## Parameters

Parameter | Required | Default | Description
--- | --- | --- | ---
value | no | java.lang.Object.class | The key property value.

## Examples