# 65.2.1. 示例

**查找并记录**

```markup
<findmainclass classesroot="target/classes" />
```

**查找并设置**

```markup
<findmainclass classesroot="target/classes" property="main-class" />
```

**覆盖并设置**

```markup
<findmainclass mainclass="com.foo.MainClass" property="main-class" />
```
