> 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/iv.-spring-boot-features/31.-caching/31.1-supported-cache-providers/31.1.5-infinispan.md).

# 31.1.5 Infinispan

Infinispan没有默认的配置文件位置，所以必须显式指定。否则，会使用默认的启动。

```
spring.cache.infinispan.config=infinispan.xml
```

通过设置`spring.cache.cache-names`属性可以让缓存在启动时就被创建。如果定义了自定义的`ConfigurationBuilder` bean，它将用来自定义缓存。

**提示** Spring Boot对Infinispan的嵌入模式的支持受限，而且相当基础。如果你需要更多的选择项，你应当使用官方的Infinispan Spring Boot starter。查看[文档](https://github.com/infinispan/infinispan-spring-boot)获取更多详细情况。
