java - ProxyFactoryBean class has no defination for CommonsPool2TargetSource? -


i'm facing trouble while creating pool pojo class. here code snippet:

    @bean     public commonspool2targetsource pooltargetsource() {         commonspool2targetsource commonspool2targetsource = new commonspool2targetsource();         commonspool2targetsource.setminidle(5);         commonspool2targetsource.setmaxsize(50);         commonspool2targetsource.settargetclass(jiotuurl.class);         return commonspool2targetsource;     }      @bean     public proxyfactorybean proxyfactorybean() {         proxyfactorybean proxyfactorybean = new proxyfactorybean();         proxyfactorybean.settargetsource(pooltargetsource());//the type org.apache.commons.pool2.pooledobjectfactory cannot resolved. indirectly referenced required .class files         return proxyfactorybean;     }      @bean     public methodinvokingfactorybean poolconfigadvisor() {         methodinvokingfactorybean poolconfigadvisor = new methodinvokingfactorybean();         poolconfigadvisor.settargetobject(commonspooltargetsource());         poolconfigadvisor.settargetmethod("getmaxidle");         return poolconfigadvisor;     } 

i getting error message @ compilation time mentioned in comment.

earlier using commonspooltargetsource came conclusion deprecated.

jars/version using: spring 4.3.1, aopalliance-1.0.jar, commons-logging-1.2.jar, commons-pool-1.6.jar, core-io-1.3.1.jar, rxjava-1.1.6.jar, slf4j-api-1.7.21.jar, slf4j-simple-1.7.21.jar

please help!!!!


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -