> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/50.-endpoints/50.10-application-information/50.10.2-custom-application-information.md).

# 50.10.2 自定义应用信息

通过设置Spring属性`info.*`，你可以定义`info`端点暴露的数据。所有在`info`关键字下的`Environment`属性都将被自动暴露。例如，你可以将以下配置添加到`application.properties`文件：

```
info.app.encoding=UTF-8
info.app.java.source=1.8
info.app.java.target=1.8
```

**注** 你可以[在构建时扩展info属性](https://docs.spring.io/spring-boot/docs/2.0.0.RELEASE/reference/htmlsingle/#howto-automatic-expansion)，而不是硬编码这些值。假设使用Maven，你可以按以下配置重写示例：

```
info.app.encoding=@project.build.sourceEncoding@
info.app.java.source=@java.version@
info.app.java.target=@java.version@
```
