redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
錯誤記錄:
今天用postman傳資料時,給我報出如下異常:redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
再往下看發現原因是:Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR invalid password
檢視配置檔案如下:
檢視JedisPool構造方法如下:
找到原因:JedisPool原始碼的構造方法中引數為poolConfig 、host、 port、 timeout、 password 、database
而我配置檔案中的注入的Bean為poolConfig 、 host 、 port 、 password 、 database 、 timeout
所以修改配置檔案與構造方法中的引數一一對應,就ok了。
相關文章
- jedis異常:Could not get a resource from the pool
- Ubuntu Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)UbuntuAPTAI
- apt could not get lockAPT
- Can't get WebApplicationContext object from ContextRegistry.GetContext(): Resource handler for the 'web' protocol is not definedWebAPPContextObjectProtocol
- Get data style from ExcelExcel
- get_data_from_yml
- 資源路由resource index 不是get路由Index
- Connections could not be acquired from the underlying databaseUIDatabase
- Could not resolve placeholder 'redis.pool.maxTotal' in string value "${redis.pool.maxTotal}"Redis
- "_dns_free_resource_record", referenced from:問題DNS
- Get your Windows product key from a scriptWindows
- How to get ORACLE_HOME from data dictionaryOracle
- Cannot get a connection, pool exhausted解決辦法
- WebLogic啟動報Could not get the server file lockWebServer
- Get All IE Info from win32 apiWin32API
- multiprocessing pool AttributeError: Can't get attribute 'func'Error
- 【故障處理】ORA-65500: could not modify DB_UNIQUE_NAME, resource exists
- Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'HTTP
- monitor PX limits from Resource Manager for active sessions (文件 ID 240877.1)MITSession
- You do not have permission to get URL ‘/’ from this server解決方案Server
- ubuntu解決Could not get lock /var/lib/dpkg/lock-frontendUbuntu
- Kettle: pentaho-server-ce-9.4 : ERROR [SchemaUpdate] could not get database metadataServerErrorDatabase
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解決ServletContextWebAPPXML
- 023 Given an integer n. get the number of 0, 2, 4 from all the values from [0, n]
- git@github.com: Permission denied (publickey). fatal: Could not read from remoteGithubREM
- pycharm出現Git Pull Failed: Could not read from remote repository.PyCharmGitAIREM
- vue-resource get/post請求如何攜帶cookie的問題VueCookie
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- Linux報錯:Could not get lock /var/lib/dpkg/lock-frontendLinux
- Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start ofAndroidErrorBATPackage
- Broker reports ORA-16858: last communication time from redo source could not beAST
- Could not find a version that satisfies the requirement py4j (from versions: ) No matching distributUIREM
- vue 之 axios 和 vue-resource簡單get請求對比VueiOS
- 【kingsql分享】解決RAC大量UNKNOWN和CRS-0216: Could not stop resourceSQL
- MySQL 5.7.17 安裝報錯SSL error: Unable to get private key fromMySqlError
- To get TaskID's Integer ID value from the GUID in SharePoint workflowGUI
- Unable to execute SonarScanner analysis: Fail to get bootstrap index from server: Host is unreachable(Host unreachable)AIbootIndexServer
- Oracle 的 KEEP pool, RECYCLE pool和DEFAULT poolOracle