我正在尝试使用 spring 配置注入值:但我收到此错误
Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
Spring 代码片段是:
<bean id="Pool" class="org.apache.commons.pool.impl.GenericKeyedObjectPool">
<constructor-arg name = "factory" ref="xyzFactory" />
<constructor-arg type = "int" name = "maxActive" value='3' />
<constructor-arg type= "byte" name = "whenExhaustedAction" value='WHEN_EXHAUSTED_GROW' />
<constructor-arg type = "long" name = "maxWait" value='3000' />
<constructor-arg type = "int" name = "maxIdle" value='3' />
<constructor-arg name = "testOnBorrow" value='true' />
<constructor-arg name = "testOnReturn" value='true' />
</bean>
请指教?