If we follow the Readme Doc to put the configuration on spring application properties.
Since we didn't put the value for hibernate.cache.provider_configuration_file_resource_path, RedisCacheUtil will try to find the default file from conf/hibernate-redis.properties. But the file is not exist on the project.
So It will throw NullPointerException before it calls the loadDefaultExpiry(). It will have no chance to load the default expiry value.
Once there is a region are trying to use the default value it will always use the hardcoded one 120 instead of the value on properties.
If we follow the Readme Doc to put the configuration on spring application properties.
Since we didn't put the value for
hibernate.cache.provider_configuration_file_resource_path
,RedisCacheUtil
will try to find the default file fromconf/hibernate-redis.properties
. But the file is not exist on the project.So It will throw
NullPointerException
before it calls theloadDefaultExpiry()
. It will have no chance to load the default expiry value. Once there is a region are trying to use the default value it will always use the hardcoded one120
instead of the value on properties.Please check my test cases.