我正在尝试调用oracle包中的存储过程。该过程接受5个IN参数,它有一个Out参数,类型为varchar表。我已经提到了我在上下文文件中完成的xml设置。如下
<int-jdbc:stored-proc-outbound-gateway
id="storeprocref" data-source="dataSource" request-channel="RequestChannel"
is-function="false" reply-channel="replyChannel"
ignore-column-meta-data="true"
stored-procedure-name="PKG_TEST.PR_CREATE_TEST"
expect-single-result="false" >
<int-jdbc:sql-parameter-definition name="USER" direction="IN" type="VARCHAR" />
<int-jdbc:sql-parameter-definition name="ID" direction="IN" type="INTEGER" />
<int-jdbc:sql-parameter-definition name="ZONE" direction="IN" type="VARCHAR"/>
<int-jdbc:sql-parameter-definition name="TEST_ID" direction="IN" type="INTEGER" />
<int-jdbc:sql-parameter-definition name="APP_PARAMIN" direction="IN" type="VARCHAR" />
<int-jdbc:parameter name="USER" expression="payload"/>
<int-jdbc:parameter name="ID" expression="payload"/>
<int-jdbc:parameter name="ZONE" expression="payload"/>
<int-jdbc:parameter name="TEST_ID" expression="payload"/>
<int-jdbc:parameter name="APP_PARAMIN" expression="payload"/>
<int-jdbc:returning-resultset name="P_LIST" row-mapper="com.local.mapper.TLISTRowMapper" />
但我收到了以下错误,
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1da205c': Could not resolve matching constructor (hint: sp
ecify index/type/name arguments for simple parameters to avoid type ambiguities)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:239) [spring-beans-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114) [spring-beans-4.
0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017) [spring-beans-4.0
.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [spring-beans-4.0.3.RELE
ASE.jar:4.0.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) [spring-beans-4.0.3.RELEAS
E.jar:4.0.3.RELEASE]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) [spring-beans-4.0.3.RELEASE.jar:4.
任何人都可以在这里帮助我。
提前致谢。