23:53:44 ERROR n.s.e.store.disk.DiskStorageFactory - Disk Write of com.koal.**.**.**.**.**.***Impl$$EnhancerBySpringCGLIB$$5b782dcf.query****.2063333947 failed: java.io.NotSerializableException: com.koal.**.**.entity.**.helloDO
看圖很明顯,其中問題就是helloDO沒有序列化。因為ehcache開啟了緩存存儲到物理影片上,所以需要序列化對象,否則就報錯。
<cache name="**-**-MethodsCache"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="1800"
timeToLiveSeconds="3600"
memoryStoreEvictionPolicy="LFU"
overflowToDisk="true"
maxElementsOnDisk="10000000"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
/>