原因是 ehcache.xml 中缺少配置
<cache name="com.abc.xyz.cache.SomeDetail"
maxElementsInMemory="5000"
eternal="false"
timeToIdleSeconds="43200"
timeToLiveSeconds="43200"
overflowToDisk="false" >
<searchable>
<searchAttribute name="type" expression="value.type"/>
<searchAttribute name="id" expression="value.id"/>
</searchable>
</cache>