[redis] The type org.apache.commons.pool2.impl.GenericObjectPoolConfig cannot be resolved.It is indirectly referenced from required .class files 報錯解決方法


在導入與redis有關的項目時,經常報下面的錯誤:

The type org.apache.commons.pool2.impl.GenericObje1ctPoolConfig cannot be resolved.It is indirectly referenced from required .class files

經查,原來是缺少包,導入下面的包即可解決:

<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-pool2</artifactId>
    <version>2.4.2</version>
</dependency>

 

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM