Throwing error when hibernate-redis configuration by spring application properties
weliff opened this issue · 0 comments
weliff commented
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)