How to use Apache commons connection pooling to create multiple instances of a singleton class in java?

后端 未结 0 938
闹比i
闹比i 2021-02-11 18:10

I am trying to use GenericObjectPool\'s borrowObjects method to obtain 5 instances of the class Hello (which is Singleton). But it is returning the same instance again and again

相关标签:
回答
  • 消灭零回复
提交回复
热议问题