Java Programmatically Configure Persistent Disk Storage with Ehcache and Spring Boot Here's a code example of programmatically configuring Ehcache in a Spring Boot application with a persistent disk store.