1. 程式人生 > >springboot【redis】打成war包後部署,訪問報could not get a resource from the pool

springboot【redis】打成war包後部署,訪問報could not get a resource from the pool

 Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
 

開發環境正常,打成war包部署後,redis無法使用,通過redis客戶端工具RedisDesktopManager進行連結,連結不上

檢查了redis的相關jar,都已引用。

經過漫長過程的測試,發現,redis設定密碼後才能啟動。汗。