debop / hibernate-redis

hibernate 2nd level cache privder using redis
Apache License 2.0
357 stars 184 forks source link

Throwing error when hibernate-redis configuration by spring application properties #118

Open weliff opened 6 years ago

weliff commented 6 years ago

Hi.

When I use the configuration for spring-boot application.properties, the input stream that reads hibernate-redis.properties throws NullPointerException because it can not find the file. Ideally, you should not need to create this file in the application.

java.lang.NullPointerException: inStream parameter is null at java.base/java.util.Objects.requireNonNull(Objects.java:246) ~[na:na] at java.base/java.util.Properties.load(Properties.java:365) ~[na:na] at org.hibernate.cache.redis.util.RedisCacheUtil.loadCacheProperties(RedisCacheUtil.java:68)